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 serverId = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordServerId) as IntegerSettingNode;
49 var contentTitle = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordContentTitle) as StringSettingNode;
50 var content = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordContent) as StringSettingNode;
51 var pageTemplate = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordPageTemplate) as
PageThemeNode;
71 CheckIsUnique(
new List<Symbol>
78 Symbol.KeywordPageTemplate,
79 Symbol.KeywordContentTitle,
85 CheckAllIsPresent(
new List<Symbol>
87 Symbol.KeywordDestinations,
88 Symbol.KeywordContentTitle,
92 CheckOnlyOneIsPresent(
new List<Symbol>
106 location = CheckLink(link.Value, keyword);
111 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordFrequency);
112 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordInitialRun);
113 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordFixedRun);
114 CheckTypeIs<PageThemeNode>(
Symbol.KeywordPageTemplate);
115 CheckTypeIs<StringSettingNode>(
Symbol.KeywordTitle);
116 CheckTypeIs<StringSettingNode>(
Symbol.KeywordPageTitle);
117 CheckTypeIs<StringSettingNode>(
Symbol.KeywordContentTitle);
118 CheckTypeIs<StringSettingNode>(
Symbol.KeywordContent);
119 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordServerId);
120 CheckTypeIs<StringSettingNode>(
Symbol.KeywordLink);
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
override AboutPageConfiguration InternalCompile()
override void ValidateReferences(SymbolTable table)
static Keyword Find(Symbol symbol)
AboutPageSyntaxNode(string name, int line)
override void ValidateTypes()
Override to validates the types in this syntax node.