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