| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |