public static ContainedLanguageAdapter ForBuffer(ITextBuffer textBuffer)
 {
     var retVal = ServiceManager.GetService<ContainedLanguageAdapter>(textBuffer);
     if (retVal == null)
         retVal = new ContainedLanguageAdapter(textBuffer);
     return retVal;
 }
 public LanguageBridge(ContainedLanguageAdapter owner, LanguageProjectionBuffer projectionBuffer, IVsContainedLanguageFactory languageFactory, IVsHierarchy hierarchy)
 {
     this.owner = owner;
     this.languageFactory = languageFactory;
     ProjectionBuffer = projectionBuffer;
     this.hierarchy = hierarchy;
     InitContainedLanguage();
 }