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); } }
public RegisterNamedElementsVisitor(XmlHighlightingDefinition def) { _def = def; }