Package iota
Class CompilationUnitContext
java.lang.Object
iota.Context
iota.CompilationUnitContext
The compilation unit context is always the outermost context and is where methods are declared.
-
Field Summary
Fields inherited from class iota.Context
compilationUnitContext, entries, surroundingContext
-
Constructor Summary
ConstructorsConstructorDescriptionCompilationUnitContext
(IAST definition) Constructs a new compilation unit context given the AST node -
Method Summary
Modifier and TypeMethodDescriptionReturns the AST node of the compilation unit this context corresponds to.void
toJSON
(JSONElement json) Adds information pertaining to this context to the given JSON element.Methods inherited from class iota.Context
addEntry, addType, compilationUnitContext, definingType, lookup, methodContext, names, surroundingContext
-
Constructor Details
-
CompilationUnitContext
Constructs a new compilation unit context given the AST node- Parameters:
definition
- and its definition.
-
-
Method Details
-
definition
Returns the AST node of the compilation unit this context corresponds to.- Returns:
- the AST node of the compilation unit this context corresponds to.
-
toJSON
Adds information pertaining to this context to the given JSON element.
-