internal AbstractFormattingResult( TreeData treeInfo, TokenStream tokenStream, TextSpan formattedSpan) { this.TreeInfo = treeInfo; this.TokenStream = tokenStream; this.FormattedSpan = formattedSpan; _lazyChanges = new CancellableLazy <IList <TextChange> >(CreateTextChanges); _lazyNode = new CancellableLazy <SyntaxNode>(CreateFormattedRoot); }
internal AbstractFormattingResult( TreeData treeInfo, TokenStream tokenStream, TextSpan formattedSpan, TaskExecutor taskExecutor) { this.TreeInfo = treeInfo; this.TokenStream = tokenStream; this.FormattedSpan = formattedSpan; this.TaskExecutor = taskExecutor; _lazyChanges = new CancellableLazy<IList<TextChange>>(CreateTextChanges); _lazyNode = new CancellableLazy<SyntaxNode>(CreateFormattedRoot); }
private ProjectDependencyGraph( Solution solution, VersionStamp version, ImmutableDictionary <ProjectId, ImmutableHashSet <ProjectId> > projectToProjectsItReferencesMap, ImmutableDictionary <ProjectId, ImmutableHashSet <ProjectId> > projectToProjectsThatReferenceItMap) { this.Solution = solution; this.Version = version; this.projectToProjectsItReferencesMap = projectToProjectsItReferencesMap; this.projectToProjectsThatReferenceItMap = projectToProjectsThatReferenceItMap; this.topologicallySortedProjects = CancellableLazy.Create( c => TopologicalSort(this.projectToProjectsItReferencesMap.Keys.OrderBy(p => p.Id), c).AsEnumerable()); }
public AbstractAggregatedFormattingResult( SyntaxNode node, IList <AbstractFormattingResult> formattingResults, SimpleIntervalTree <TextSpan, TextSpanIntervalIntrospector>?formattingSpans) { Contract.ThrowIfNull(node); Contract.ThrowIfNull(formattingResults); this.Node = node; _formattingResults = formattingResults; _formattingSpans = formattingSpans; _lazyTextChanges = new CancellableLazy <IList <TextChange> >(CreateTextChanges); _lazyNode = new CancellableLazy <SyntaxNode>(CreateFormattedRoot); }
public AbstractAggregatedFormattingResult( SyntaxNode node, IList<AbstractFormattingResult> formattingResults, SimpleIntervalTree<TextSpan> formattingSpans) { Contract.ThrowIfNull(node); Contract.ThrowIfNull(formattingResults); this.Node = node; _formattingResults = formattingResults; _formattingSpans = formattingSpans; _lazyTextChanges = new CancellableLazy<IList<TextChange>>(CreateTextChanges); _lazyNode = new CancellableLazy<SyntaxNode>(CreateFormattedRoot); }