23 using System.Collections.Generic;
30 namespace Ntp.Analyzer.Config.Syntax
45 var fixedRun = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordFixedRun) as BooleanSettingNode;
48 var pageTemplate = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordPageTemplate) as
PageThemeNode;
49 var pageTime = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordPageTime) as
TimeStampNode ??
59 pageTime?.DateTimeKind,
62 graphSets.Select(g => g.Compile()),
70 CheckIsUnique(
new List<Symbol>
78 Symbol.KeywordPageTemplate,
84 CheckOnlyOneIsPresent(
new List<Symbol>
90 CheckOnlyOneIsPresent(
new List<Symbol>
96 CheckAllIsPresent(
new List<Symbol> {
Symbol.KeywordDestinations});
106 location = CheckLink(link.Value, keyword);
111 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordFrequency);
112 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordInitialRun);
113 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordFixedRun);
114 CheckTypeIs<StringSettingNode>(
Symbol.KeywordTitle);
115 CheckTypeIs<StringSettingNode>(
Symbol.KeywordPageTitle);
116 CheckTypeIs<StringSettingNode>(
Symbol.KeywordLink);
117 CheckTypeIs<PageThemeNode>(
Symbol.KeywordPageTemplate);
118 CheckTypeIs<TimeStampNode>(
Symbol.KeywordPageTime);
119 CheckTypeIs<TimeStampNode>(
Symbol.KeywordTimeStamp);
static Keyword Find(Symbol symbol)
override void ValidateReferences(SymbolTable table)
PeerPageSyntaxNode(string name, int line)
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
override PeerPageConfiguration InternalCompile()
override void ValidateTypes()
Override to validates the types in this syntax node.