aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleCompilerExtension.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/Example.Extension/ExampleCompilerExtension.cs')
-rw-r--r--src/test/Example.Extension/ExampleCompilerExtension.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/Example.Extension/ExampleCompilerExtension.cs b/src/test/Example.Extension/ExampleCompilerExtension.cs
index e821b7b6..9f0abd4c 100644
--- a/src/test/Example.Extension/ExampleCompilerExtension.cs
+++ b/src/test/Example.Extension/ExampleCompilerExtension.cs
@@ -23,6 +23,10 @@ namespace Example.Extension
23 case "Fragment": 23 case "Fragment":
24 switch (element.Name.LocalName) 24 switch (element.Name.LocalName)
25 { 25 {
26 case "ExampleEnsureTable":
27 this.ParseExampleEnsureTableElement(intermediate, section, element);
28 processed = true;
29 break;
26 case "ExampleSearch": 30 case "ExampleSearch":
27 this.ParseExampleSearchElement(intermediate, section, element); 31 this.ParseExampleSearchElement(intermediate, section, element);
28 processed = true; 32 processed = true;
@@ -93,6 +97,12 @@ namespace Example.Extension
93 } 97 }
94 } 98 }
95 99
100 private void ParseExampleEnsureTableElement(Intermediate intermediate, IntermediateSection section, XElement element)
101 {
102 var sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(element);
103 this.ParseHelper.EnsureTable(section, sourceLineNumbers, ExampleTableDefinitions.NotInAll);
104 }
105
96 private void ParseExampleSearchElement(Intermediate intermediate, IntermediateSection section, XElement element) 106 private void ParseExampleSearchElement(Intermediate intermediate, IntermediateSection section, XElement element)
97 { 107 {
98 var sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(element); 108 var sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(element);