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

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

Issue 2735973004: Add 'withKeyword' to mixin application with Fasta. (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 unified diff | Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.outline_builder; 5 library fasta.outline_builder;
6 6
7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind; 7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind;
8 8
9 import '../parser/parser.dart' show FormalParameterType, optional; 9 import '../parser/parser.dart' show FormalParameterType, optional;
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 int modifiers = 311 int modifiers =
312 Modifier.validate(pop(), isAbstract: bodyKind == MethodBody.Abstract); 312 Modifier.validate(pop(), isAbstract: bodyKind == MethodBody.Abstract);
313 List<MetadataBuilder> metadata = pop(); 313 List<MetadataBuilder> metadata = pop();
314 library.addProcedure(metadata, modifiers, returnType, name, typeVariables, 314 library.addProcedure(metadata, modifiers, returnType, name, typeVariables,
315 formals, asyncModifier, kind, beginToken.charOffset, nativeMethodName, 315 formals, asyncModifier, kind, beginToken.charOffset, nativeMethodName,
316 isTopLevel: false); 316 isTopLevel: false);
317 nativeMethodName = null; 317 nativeMethodName = null;
318 } 318 }
319 319
320 @override 320 @override
321 void endMixinApplication() { 321 void endMixinApplication(Token withKeyword) {
322 debugEvent("MixinApplication"); 322 debugEvent("MixinApplication");
323 List<TypeBuilder> mixins = pop(); 323 List<TypeBuilder> mixins = pop();
324 TypeBuilder supertype = pop(); 324 TypeBuilder supertype = pop();
325 push(library.addMixinApplication(supertype, mixins, -1)); 325 push(library.addMixinApplication(supertype, mixins, -1));
326 } 326 }
327 327
328 @override 328 @override
329 void beginNamedMixinApplication(Token begin, Token name) { 329 void beginNamedMixinApplication(Token begin, Token name) {
330 library.beginNestedDeclaration(name.value, hasMembers: false); 330 library.beginNestedDeclaration(name.value, hasMembers: false);
331 } 331 }
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 Link<Token> handleMemberName(Link<Token> identifiers) { 679 Link<Token> handleMemberName(Link<Token> identifiers) {
680 if (!isDartLibrary || identifiers.isEmpty) return identifiers; 680 if (!isDartLibrary || identifiers.isEmpty) return identifiers;
681 return removeNativeClause(identifiers); 681 return removeNativeClause(identifiers);
682 } 682 }
683 683
684 @override 684 @override
685 void debugEvent(String name) { 685 void debugEvent(String name) {
686 // printEvent(name); 686 // printEvent(name);
687 } 687 }
688 } 688 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698