Rename analyzeSync() to analyze().

R=brianwilkerson@google.com

Change-Id: Ie05edb97b27d0820387184c5158c095549ab1a00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215260
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2021-10-01 21:27:37 +00:00 committed by commit-bot@chromium.org
parent 822140714d
commit 7fb8c7afea
3 changed files with 2 additions and 7 deletions

View file

@ -100,11 +100,6 @@ class LibraryAnalyzer {
/// Compute analysis results for all units of the library.
Map<FileState, UnitAnalysisResult> analyze() {
return analyzeSync();
}
/// Compute analysis results for all units of the library.
Map<FileState, UnitAnalysisResult> analyzeSync() {
timerLibraryAnalyzer.start();
Map<FileState, CompilationUnitImpl> units = {};

View file

@ -100,7 +100,7 @@ class LibraryAnalyzer {
TypeSystemImpl get _typeSystem => _libraryElement.typeSystem;
/// Compute analysis results for all units of the library.
Map<FileState, UnitAnalysisResult> analyzeSync({
Map<FileState, UnitAnalysisResult> analyze({
required String? completionPath,
required int? completionOffset,
required OperationPerformanceImpl performance,

View file

@ -526,7 +526,7 @@ class FileResolver {
try {
results = performance!.run('analyze', (performance) {
return libraryAnalyzer.analyzeSync(
return libraryAnalyzer.analyze(
completionPath: completionOffset != null ? completionPath : null,
completionOffset: completionOffset,
performance: performance,