Skip to content

Commit

Permalink
Delete {.requiresInit.} on internal types
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabben committed Apr 4, 2023
1 parent b231af7 commit 0a519df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/deser/macroutils/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ from anycase import


type
Struct* {.requiresInit.} = object
Struct* = object
## Intermediate representation of type.
##
## Usually `Struct` is initialized using the `fromTypeSym` constructor.
Expand All @@ -46,7 +46,7 @@ type
nskEnumFieldUnknownSym: NimNode
duplicateCheck: bool

Field* {.requiresInit.} = object
Field* = object
## Intermediate representation of type field.
##
## Usually `Field` is initialized using
Expand Down Expand Up @@ -74,7 +74,7 @@ type
else:
discard

StructFeatures* {.requiresInit.} = object
StructFeatures* = object
## Features derived from pragmas.
##
## Usually `StructFeatures` is initialized using
Expand All @@ -88,7 +88,7 @@ type
skipPrivateDeserializing: bool
defaultValue: Option[NimNode]

FieldFeatures* {.requiresInit.} = object
FieldFeatures* = object
## Features derived from pragmas.
##
## Usually `FieldFeatures` is initialized using
Expand All @@ -113,7 +113,7 @@ type
Of
Else

FieldBranch* {.requiresInit.} = object
FieldBranch* = object
## Represents branch of case field.
##
## Usually `FieldBranch` is initialized using
Expand All @@ -130,7 +130,7 @@ type
discard
fields: seq[Field]

TypeInfo* {.requiresInit.} = object
TypeInfo* = object
## Not parsed representation of type.
## Used when we not need to parse `NimNode` to `Struct`, `Field`, `*Features`, etc.
##
Expand Down

0 comments on commit 0a519df

Please sign in to comment.