Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused methods #65782

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,5 @@ public override SyntaxTree ParseSyntaxTree(string filePath, ParseOptions options
options ??= GetDefaultParseOptions();
return SyntaxFactory.ParseSyntaxTree(text, options, filePath, cancellationToken: cancellationToken);
}

public override SyntaxNode DeserializeNodeFrom(Stream stream, CancellationToken cancellationToken)
=> CSharpSyntaxNode.DeserializeFrom(stream, cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ internal abstract partial class AbstractSyntaxTreeFactoryService : ISyntaxTreeFa
public abstract ParseOptions TryParsePdbParseOptions(IReadOnlyDictionary<string, string> metadata);
public abstract SyntaxTree CreateSyntaxTree(string filePath, ParseOptions options, Encoding encoding, SourceHashAlgorithm checksumAlgorithm, SyntaxNode root);
public abstract SyntaxTree ParseSyntaxTree(string filePath, ParseOptions options, SourceText text, CancellationToken cancellationToken);
public abstract SyntaxNode DeserializeNodeFrom(Stream stream, CancellationToken cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,5 @@ internal interface ISyntaxTreeFactoryService : ILanguageService

// new tree from text
SyntaxTree ParseSyntaxTree(string? filePath, ParseOptions options, SourceText text, CancellationToken cancellationToken);

SyntaxNode DeserializeNodeFrom(Stream stream, CancellationToken cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,5 @@ Namespace Microsoft.CodeAnalysis.VisualBasic

Return New ParsedSyntaxTree(lazyText:=Nothing, DirectCast(root, VisualBasicSyntaxNode), DirectCast(options, VisualBasicParseOptions), filePath, encoding, checksumAlgorithm)
End Function

Public Overrides Function DeserializeNodeFrom(stream As Stream, cancellationToken As CancellationToken) As SyntaxNode
Return VisualBasicSyntaxNode.DeserializeFrom(stream, cancellationToken)
End Function
End Class
End Namespace