23 using System.Collections.Generic;
29 namespace Ntp.Analyzer.Config.Syntax
45 var fixedRun = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordFixedRun) as BooleanSettingNode;
46 var linkIndex = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordLinkIndex) as IntegerSettingNode;
70 CheckIsUnique(
new List<Symbol>
81 CheckAllIsPresent(
new List<Symbol>
95 var reference = table.
Lookup(pageName.Value);
96 if (reference == null)
98 AddReferenceNameError(pageName, keyword, pageName.Value);
103 AddReferenceTypeError(pageName, keyword, peerPageKeyword, pageName.Value);
107 var link = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordLink) as StringSettingNode;
112 location = CheckLink(link.Value, linkKeyword);
117 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordFrequency);
118 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordInitialRun);
119 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordFixedRun);
120 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordLinkIndex);
121 CheckTypeIs<StringSettingNode>(
Symbol.KeywordGraphPage);
122 CheckTypeIs<StringSettingNode>(
Symbol.KeywordLink);
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
static Keyword Find(Symbol symbol)
PeerGraphPageSyntaxNode(string name, int line)
override void ValidateTypes()
Override to validates the types in this syntax node.
PeerPageSyntaxNode pageNode
override void ValidateReferences(SymbolTable table)
override void InternalResolve(SymbolTable table)
override PeerGraphPageConfiguration InternalCompile()
ISyntaxNode Lookup(string name)