| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 nativeMethodName = null; | 267 nativeMethodName = null; |
| 268 } | 268 } |
| 269 | 269 |
| 270 @override | 270 @override |
| 271 void handleNoFunctionBody(Token token) { | 271 void handleNoFunctionBody(Token token) { |
| 272 debugEvent("NoFunctionBody"); | 272 debugEvent("NoFunctionBody"); |
| 273 push(MethodBody.Abstract); | 273 push(MethodBody.Abstract); |
| 274 } | 274 } |
| 275 | 275 |
| 276 @override | 276 @override |
| 277 void handleFunctionBodySkipped(Token token) { | 277 void handleFunctionBodySkipped(Token token, bool isExpressionBody) { |
| 278 debugEvent("handleFunctionBodySkipped"); | 278 debugEvent("handleFunctionBodySkipped"); |
| 279 push(MethodBody.Regular); | 279 push(MethodBody.Regular); |
| 280 } | 280 } |
| 281 | 281 |
| 282 @override | 282 @override |
| 283 void beginMethod(Token token, Token name) { | 283 void beginMethod(Token token, Token name) { |
| 284 library.beginNestedDeclaration(name.value, hasMembers: false); | 284 library.beginNestedDeclaration(name.value, hasMembers: false); |
| 285 } | 285 } |
| 286 | 286 |
| 287 @override | 287 @override |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 Link<Token> handleMemberName(Link<Token> identifiers) { | 699 Link<Token> handleMemberName(Link<Token> identifiers) { |
| 700 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 700 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
| 701 return removeNativeClause(identifiers); | 701 return removeNativeClause(identifiers); |
| 702 } | 702 } |
| 703 | 703 |
| 704 @override | 704 @override |
| 705 void debugEvent(String name) { | 705 void debugEvent(String name) { |
| 706 // printEvent(name); | 706 // printEvent(name); |
| 707 } | 707 } |
| 708 } | 708 } |
| OLD | NEW |