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, hostPageKeyword, 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 ValidateReferences(SymbolTable table)
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
HostGraphPageSyntaxNode(string name, int line)
HostPageSyntaxNode pageNode
override HostGraphPageConfiguration InternalCompile()
static Keyword Find(Symbol symbol)
override void InternalResolve(SymbolTable table)
ISyntaxNode Lookup(string name)
override void ValidateTypes()
Override to validates the types in this syntax node.