Пример #1
0
 public TranslateElementVisitor(XmlHighlightingDefinition def, Dictionary <XshdRuleSet, HighlightingRuleSet> ruleSetDict, IHighlightingDefinitionReferenceResolver resolver)
 {
     Debug.Assert(def != null);
     Debug.Assert(ruleSetDict != null);
     _def                = def;
     _ruleSetDict        = ruleSetDict;
     _resolver           = resolver;
     _reverseRuleSetDict = new Dictionary <HighlightingRuleSet, XshdRuleSet>();
     foreach (var pair in ruleSetDict)
     {
         _reverseRuleSetDict.Add(pair.Value, pair.Key);
     }
 }
Пример #2
0
 public RegisterNamedElementsVisitor(XmlHighlightingDefinition def)
 {
     _def = def;
 }