Class SemanticModel

java.lang.Object
io.github.protasm.jvmud.compiler.semantic.SemanticModel

public final class SemanticModel extends Object
Captures semantic artifacts produced by SemanticAnalyzer.
  • Constructor Details

  • Method Details

    • astObject

      public ASTObject astObject()
    • objectScope

      public SemanticScope objectScope()
    • compilationUnit

      public CompilationUnit compilationUnit()
      Returns the compilation unit that produced this model when analysis came from a pipeline run.

      The unit gives later stages access to resolved parent units, which is needed for compiler metadata such as transitive LPC inheritance introspection. Ad-hoc semantic models may leave this unset.