예제 #1
0
 public TranslateElementVisitor(XmlHighlightingDefinition def, Dictionary <XshdRuleSet, HighlightingRuleSet> ruleSetDict, IHighlightingDefinitionReferenceResolver resolver)
 {
     Debug.Assert(def != null);
     Debug.Assert(ruleSetDict != null);
     this.def           = def;
     this.ruleSetDict   = ruleSetDict;
     this.resolver      = resolver;
     reverseRuleSetDict = new Dictionary <HighlightingRuleSet, XshdRuleSet>();
     foreach (var pair in ruleSetDict)
     {
         reverseRuleSetDict.Add(pair.Value, pair.Key);
     }
 }
예제 #2
0
 public RegisterNamedElementsVisitor(XmlHighlightingDefinition def)
 {
     this.def = def;
 }
예제 #3
0
 public TranslateElementVisitor(XmlHighlightingDefinition def, Dictionary<XshdRuleSet, HighlightingRuleSet> ruleSetDict, IHighlightingDefinitionReferenceResolver resolver)
 {
     Debug.Assert(def != null);
     Debug.Assert(ruleSetDict != null);
     this.def = def;
     this.ruleSetDict = ruleSetDict;
     this.resolver = resolver;
     reverseRuleSetDict = new Dictionary<HighlightingRuleSet, XshdRuleSet>();
     foreach (var pair in ruleSetDict) {
         reverseRuleSetDict.Add(pair.Value, pair.Key);
     }
 }
예제 #4
0
 public RegisterNamedElementsVisitor(XmlHighlightingDefinition def)
 {
     this.def = def;
 }