Vixen
dd8b0a81
csharp
public sealed class SemanticModel

Semantic answers about one syntax tree: what a name refers to, what type an expression has, and what a declaration declares.

Read the guide page for this →

Remarks

Unlike Roslyn, which binds on demand around the node you ask about, this model binds every member body in the tree the first time it is queried and answers from the resulting maps. That keeps the binder chain construction in one place at the cost of doing the whole tree at once.

Fields and properties (3)

  • public Compilation Compilation
  • public SyntaxTree SyntaxTree
  • public IReadOnlyList<Diagnostic> Diagnostics

    Diagnostics produced by binding this tree's member bodies.

Methods (3)

Used by (7)

  • BindingTestsVixen.Raven.Tests
  • CompilationVixen.Raven
  • LowererVixen.Raven
  • RemovedConstructsTestsVixen.Raven.Tests
  • SemanticModelTestsVixen.Raven.Tests
  • SemanticTestBaseVixen.Raven.Tests
  • SizedArrayTestsVixen.Raven.Tests