parent
75c586bbe1
commit
a8ba628bcd
5 changed files with 97 additions and 184 deletions
|
|
@ -207,11 +207,6 @@ proc makeTypeDesc*(c: PContext, typ: PType): PType =
|
|||
proc newTypeS(kind: TTypeKind, c: PContext): PType =
|
||||
result = newType(kind, getCurrOwner())
|
||||
|
||||
proc newTypeWithSons*(c: PContext, kind: TTypeKind,
|
||||
sons: seq[PType]): PType =
|
||||
result = newType(kind, getCurrOwner())
|
||||
result.sons = sons
|
||||
|
||||
proc errorType*(c: PContext): PType =
|
||||
## creates a type representing an error state
|
||||
result = newTypeS(tyError, c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue