MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / visitConstructor

Method visitConstructor

rat-sql-gap/seq2struct/ast_util.py:43–50  ·  view source on GitHub ↗
(self, cons, _name)

Source from the content-addressed store, hash-verified

41 self.visit(t, name)
42
43 def visitConstructor(self, cons, _name):
44 # type: (asdl.Constructor, str) -> None
45 assert cons.name not in self.constructors
46 self.constructors[cons.name] = cons
47 if not cons.fields:
48 self.fieldless_constructors[cons.name] = cons
49 for f in cons.fields:
50 self.visit(f, cons.name)
51
52 def visitField(self, field, name):
53 # type: (asdl.Field, str) -> None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected