Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1196)

Unified Diff: pkg/analyzer/lib/src/dart/analysis/file_state.dart

Issue 2785883005: Make top-level scope implicit. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/source/scope_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/file_state.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/file_state.dart b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
index 1cbd5deac27e0b1043405a4a42f61e89df8f6b69..b1dc47445a9add3403d2e5cf152b44d96bfacafe 100644
--- a/pkg/analyzer/lib/src/dart/analysis/file_state.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
@@ -364,7 +364,7 @@ class FileState {
null,
null,
new _FastaElementStoreProxy(),
- new _FastaEmptyScope(),
+ null,
uri);
var parser = new fasta.Parser(astBuilder);
parser.parseUnit(scanResult.tokens);
@@ -801,10 +801,6 @@ class _FastaElementStoreProxy implements fasta.ElementStore {
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
-class _FastaEmptyScope extends fasta.Scope {
- _FastaEmptyScope() : super({}, null);
-}
-
class _FastaInterfaceTypeProxy implements fasta.KernelInterfaceType {
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/source/scope_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698