/// <summary> /// Initializes a new instance of the <c>ParentTokenTaggerProvider</c> class. /// </summary> /// <param name="classificationTypeProvider">A <see cref="IParentClassificationTypeProvider"/> that provides classification types.</param> public ParentTokenTaggerProvider(IParentClassificationTypeProvider classificationTypeProvider) { if ((classificationTypeProvider == null)) { throw new ArgumentNullException("classificationTypeProvider"); } // Initialize this.classificationTypeProviderValue = classificationTypeProvider; }
/// <summary> /// Initializes a new instance of the <c>ParentTokenTagger</c> class. /// </summary> /// <param name="document">The specific <see cref="ICodeDocument"/> for which this token tagger will be used.</param> /// <param name="classificationTypeProvider">A <see cref="IParentClassificationTypeProvider"/> that provides classification types used by this token tagger.</param> public ParentTokenTagger(ICodeDocument document, IParentClassificationTypeProvider classificationTypeProvider) : base(document) { if ((classificationTypeProvider == null)) { throw new ArgumentNullException("classificationTypeProvider"); } // Initialize this.classificationTypeProviderValue = classificationTypeProvider; // Create the token tagger for the child language cSharpTokenTagger = new CSharpTokenTagger(document, new DotNetClassificationTypeProvider()); }