schema: import std/sets when neccessary
This commit is contained in:
parent
0f697349cc
commit
0e3824fc5d
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "20230530"
|
version = "20230607"
|
||||||
author = "Emery Hemingway"
|
author = "Emery Hemingway"
|
||||||
description = "data model and serialization format"
|
description = "data model and serialization format"
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
|
|
|
@ -717,6 +717,8 @@ proc collectRefImports(imports: var StringSet; loc: Location; pat: Pattern)
|
||||||
|
|
||||||
proc collectRefImports(imports: var StringSet; loc: Location; sp: SimplePattern) =
|
proc collectRefImports(imports: var StringSet; loc: Location; sp: SimplePattern) =
|
||||||
case sp.orKind
|
case sp.orKind
|
||||||
|
of SimplePatternKind.setof:
|
||||||
|
incl(imports, "std/sets")
|
||||||
of SimplePatternKind.dictof:
|
of SimplePatternKind.dictof:
|
||||||
incl(imports, "std/tables")
|
incl(imports, "std/tables")
|
||||||
of SimplePatternKind.Ref:
|
of SimplePatternKind.Ref:
|
||||||
|
|
Loading…
Reference in New Issue