public IClassifier GetClassifier(ITextBuffer textBuffer)
 {
     ProjectionClassifier res;
     if (!textBuffer.Properties.TryGetProperty<ProjectionClassifier>(typeof(ProjectionClassifier), out res) &&
         textBuffer.Properties.ContainsProperty(typeof(PhpProjectionBuffer)))
     {
         res = new ProjectionClassifier();
         textBuffer.Properties.AddProperty(typeof(ProjectionClassifier), res);
     }
     return res;
 }
Exemplo n.º 2
0
        public IClassifier GetClassifier(ITextBuffer textBuffer)
        {
            ProjectionClassifier res;

            if (!textBuffer.Properties.TryGetProperty <ProjectionClassifier>(typeof(ProjectionClassifier), out res) &&
                textBuffer.Properties.ContainsProperty(typeof(PhpProjectionBuffer)))
            {
                res = new ProjectionClassifier();
                textBuffer.Properties.AddProperty(typeof(ProjectionClassifier), res);
            }
            return(res);
        }