Exemple #1
0
        public Tagger(ICodeDocument document) : base("Custom",
                                                     new Ordering[] { new Ordering(TaggerKeys.Token, OrderPlacement.Before) }, document)
        {
            // Get a token tag aggregator
            tokenTagAggregator = document.CreateTagAggregator <ITokenTag>();

            tokens.Add("Osc");
            tokens.Add("Log");
            tokens.Add("Client");
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <c>CustomClassificationTagger</c> class.
 /// </summary>
 /// <param name="document">The document to which this manager is attached.</param>
 public CustomClassificationTagger(ICodeDocument document) : base("Custom",
                                                                  new Ordering[] { new Ordering(TaggerKeys.Token, OrderPlacement.Before) }, document)
 {
     // Get a token tag aggregator
     tokenTagAggregator = document.CreateTagAggregator <ITokenTag>();
 }