private RecoverableSyntaxTree(RecoverableSyntaxTree original, SyntaxTreeInfo info) { _recoverableRoot = original._recoverableRoot.WithSyntaxTree(this); _info = info; _projectCacheService = original._projectCacheService; _cacheKey = original._cacheKey; }
private RecoverableSyntaxTree(RecoverableSyntaxTree original, SyntaxTreeInfo info) { this.recoverableRoot = original.recoverableRoot.WithSyntaxTree(this); this.info = info; this.projectCacheService = original.projectCacheService; this.cacheKey = original.cacheKey; }
internal static SyntaxTree CreateRecoverableTree(AbstractSyntaxTreeFactoryService service, string filePath, ParseOptions options, ValueSource <TextAndVersion> text, CompilationUnitSyntax root, bool reparse) { var recoverableRoot = CachedRecoverableSyntaxRoot <CompilationUnitSyntax> .Create(service, filePath, options, text, root, reparse); var recoverableTree = new RecoverableSyntaxTree(recoverableRoot); recoverableRoot.SetContainingTree(recoverableTree); return(recoverableTree); }
public override SyntaxTree CreateRecoverableTree(ProjectId cacheKey, string filePath, ParseOptions options, ValueSource <TextAndVersion> text, Encoding encoding, SyntaxNode root) { System.Diagnostics.Debug.Assert(CanCreateRecoverableTree(root)); return(RecoverableSyntaxTree.CreateRecoverableTree( this, cacheKey, filePath, options ?? GetDefaultParseOptions(), text, encoding, (CompilationUnitSyntax)root, diagnosticOptions: null)); }
public override SyntaxTree CreateRecoverableTree(ProjectId cacheKey, string filePath, ParseOptions optionsOpt, ValueSource <TextAndVersion> text, SyntaxNode root) { return(RecoverableSyntaxTree.CreateRecoverableTree(this, cacheKey, filePath, optionsOpt ?? GetDefaultParseOptions(), text, (CompilationUnitSyntax)root)); }
public override SyntaxTree CreateRecoverableTree(string filePath, ParseOptions optionsOpt, ValueSource <TextAndVersion> text, SyntaxNode root, bool reparse) { return(RecoverableSyntaxTree.CreateRecoverableTree(this, filePath, optionsOpt ?? GetDefaultParseOptions(), text, (CompilationUnitSyntax)root, reparse)); }