NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Config.Compiler.SymbolResolver Class Reference
Inheritance diagram for Ntp.Analyzer.Config.Compiler.SymbolResolver:
Collaboration diagram for Ntp.Analyzer.Config.Compiler.SymbolResolver:

Public Member Functions

 SymbolResolver (ISyntaxNode root)
 
void Execute ()
 Execute the compiler stage. More...
 

Public Attributes

IEnumerable< string > Errors => new List<string>()
 Gets the errors from this stage. More...
 

Properties

SymbolTable SymbolTable [get, set]
 
- Properties inherited from Ntp.Analyzer.Config.Compiler.ICompilerStage
IEnumerable< string > Errors [get]
 Gets the errors from this stage. More...
 
SymbolTable SymbolTable [get, set]
 Gets or sets the symbol table. More...
 

Private Member Functions

void Resolve (ISyntaxNode node)
 

Private Attributes

readonly ISyntaxNode root
 

Detailed Description

Definition at line 28 of file SymbolResolver.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Compiler.SymbolResolver.SymbolResolver ( ISyntaxNode  root)
inline

Definition at line 30 of file SymbolResolver.cs.

31  {
32  this.root = root;
33  }

Member Function Documentation

void Ntp.Analyzer.Config.Compiler.SymbolResolver.Execute ( )
inline

Execute the compiler stage.

Implements Ntp.Analyzer.Config.Compiler.ICompilerStage.

Definition at line 46 of file SymbolResolver.cs.

47  {
48  Resolve(root);
49  }
void Ntp.Analyzer.Config.Compiler.SymbolResolver.Resolve ( ISyntaxNode  node)
inlineprivate

Definition at line 51 of file SymbolResolver.cs.

52  {
53  foreach (var child in node)
54  {
55  Resolve(child);
56  child.Resolve(SymbolTable);
57  }
58  }

Member Data Documentation

IEnumerable<string> Ntp.Analyzer.Config.Compiler.SymbolResolver.Errors => new List<string>()

Gets the errors from this stage.

The symbol resolver stage does not yield errors>

The errors.

Definition at line 44 of file SymbolResolver.cs.

readonly ISyntaxNode Ntp.Analyzer.Config.Compiler.SymbolResolver.root
private

Definition at line 35 of file SymbolResolver.cs.

Property Documentation

SymbolTable Ntp.Analyzer.Config.Compiler.SymbolResolver.SymbolTable
getset

Definition at line 37 of file SymbolResolver.cs.


The documentation for this class was generated from the following file: