public PlayTagger BuildPlayTagger(ITextBuffer buffer) { PlayTagger tagger; if (buffer.Properties.TryGetProperty(typeof(PlayTagger), out tagger)) return tagger; tagger = new PlayTagger(BuildTokenParser(buffer)); buffer.Properties.AddProperty(typeof(PlayTagger), tagger); return tagger; }
public PlayTagger BuildPlayTagger(ITextBuffer buffer) { PlayTagger tagger; if (buffer.Properties.TryGetProperty(typeof(PlayTagger), out tagger)) { return(tagger); } tagger = new PlayTagger(BuildTokenParser(buffer)); buffer.Properties.AddProperty(typeof(PlayTagger), tagger); return(tagger); }