mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:12:08 +00:00
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:
parent
822140714d
commit
7fb8c7afea
|
@ -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 = {};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue