22 using System.Collections.Generic;
28 namespace Ntp.Analyzer.Config.Syntax
35 pages =
new List<PeerSummaryPageSyntaxNode>();
38 private readonly List<PeerSummaryPageSyntaxNode>
pages;
49 Where(n => n.Symbol ==
Symbol.KeywordPeerSummaryPage).
50 Cast<StringSettingNode>().
51 Select(page => table.
Lookup(page.Value)).
52 Cast<PeerSummaryPageSyntaxNode>()
58 CheckAllIsPresent(
new List<Symbol> {
Symbol.KeywordPeerSummaryPage});
67 foreach (var page
in pageNames)
69 var reference = table.Lookup(page.Value);
70 if (reference == null)
72 AddReferenceNameError(page, keyword, page.Value);
76 AddReferenceTypeError(page, keyword, pageKeyword, page.Value);
83 CheckTypeIs<StringSettingNode>(
Symbol.KeywordPeerSummaryPage);
SummariesSyntaxNode(string name, int line)
readonly List< PeerSummaryPageSyntaxNode > pages
override void ValidateReferences(SymbolTable table)
static Keyword Find(Symbol symbol)
override void InternalResolve(SymbolTable table)
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
ISyntaxNode Lookup(string name)
override SummaryCollection InternalCompile()
override void ValidateTypes()
Override to validates the types in this syntax node.