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

Unified Diff: pkg/front_end/lib/src/fasta/source/outline_builder.dart

Issue 2672993003: Handle type variables. (Closed)
Patch Set: Add comments. Created 3 years, 10 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
Index: pkg/front_end/lib/src/fasta/source/outline_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
index 4549589d4596b52b14b563dabd06e9a3170f4987..95e49b79091f5ccd0c295670dfc527bae2279553 100644
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
@@ -210,6 +210,11 @@ class OutlineBuilder extends UnhandledListener {
}
@override
+ void beginTopLevelMethod(Token token, Token name) {
+ library.beginNestedScope(hasMembers: false);
+ }
+
+ @override
ProcedureBuilder endTopLevelMethod(
Token beginToken, Token getOrSet, Token endToken) {
debugEvent("endTopLevelMethod");
@@ -240,6 +245,11 @@ class OutlineBuilder extends UnhandledListener {
}
@override
+ void beginMethod(Token token, Token name) {
+ library.beginNestedScope(hasMembers: false);
+ }
+
+ @override
void endMethod(Token getOrSet, Token beginToken, Token endToken) {
debugEvent("Method");
MethodBody kind = pop();
@@ -272,7 +282,7 @@ class OutlineBuilder extends UnhandledListener {
@override
void beginNamedMixinApplication(Token token) {
- library.beginNestedScope();
+ library.beginNestedScope(hasMembers: false);
}
@override
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | pkg/front_end/lib/src/fasta/source/source_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698