Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <c>SyntaxEditorStepBroTokenTaggerProvider</c> class.
        /// </summary>
        /// <param name="classificationTypeProvider">A <see cref="IStepBroClassificationTypeProvider"/> that provides classification types.</param>
        public StepBroTokenTaggerProvider(IStepBroClassificationTypeProvider classificationTypeProvider)
        {
            if ((classificationTypeProvider == null))
            {
                throw new ArgumentNullException("classificationTypeProvider");
            }

            // Initialize
            this.classificationTypeProviderValue = classificationTypeProvider;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <c>SimpleTokenTagger</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="IStepBroClassificationTypeProvider"/> that provides classification types used by this token tagger.</param>
 public StepBroTokenTagger(ICodeDocument document, IStepBroClassificationTypeProvider classificationTypeProvider) :
     base(document)
 {
     // Initialize
     classificationTypeProviderValue = classificationTypeProvider ?? throw new ArgumentNullException("classificationTypeProvider");
 }