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

Public Member Functions

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

Public Attributes

IEnumerable< string > Errors => errors


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 Validate (ISyntaxNode node)

Private Attributes

readonly List< string > errors
readonly ISyntaxNode root

Detailed Description

Definition at line 28 of file SchematicValidator.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Compiler.SchematicValidator.SchematicValidator ( ISyntaxNode  root)

Definition at line 30 of file SchematicValidator.cs.

31  {
32  this.root = root;
33  errors = new List<string>();
34  }

Member Function Documentation

void Ntp.Analyzer.Config.Compiler.SchematicValidator.Execute ( )

Execute the compiler stage.

Implements Ntp.Analyzer.Config.Compiler.ICompilerStage.

Definition at line 44 of file SchematicValidator.cs.

void Ntp.Analyzer.Config.Compiler.SchematicValidator.Validate ( ISyntaxNode  node)

Definition at line 49 of file SchematicValidator.cs.

50  {
51  foreach (var child in node)
52  {
53  Validate(child);
54  child.Validate(SymbolTable);
56  if (child.HasErrors)
57  errors.AddRange(child.Errors);
58  }
59  }

Member Data Documentation

readonly List<string> Ntp.Analyzer.Config.Compiler.SchematicValidator.errors

Definition at line 36 of file SchematicValidator.cs.

IEnumerable<string> Ntp.Analyzer.Config.Compiler.SchematicValidator.Errors => errors

Definition at line 42 of file SchematicValidator.cs.

readonly ISyntaxNode Ntp.Analyzer.Config.Compiler.SchematicValidator.root

Definition at line 38 of file SchematicValidator.cs.

Property Documentation

SymbolTable Ntp.Analyzer.Config.Compiler.SchematicValidator.SymbolTable

Definition at line 40 of file SchematicValidator.cs.

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