| 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 | 7 import 'package:kernel/ast.dart' show |
| 8 AsyncMarker, | 8 AsyncMarker, |
| 9 ProcedureKind; | 9 ProcedureKind; |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 final bool isDartLibrary; | 84 final bool isDartLibrary; |
| 85 | 85 |
| 86 String nativeMethodName; | 86 String nativeMethodName; |
| 87 | 87 |
| 88 OutlineBuilder(SourceLibraryBuilder library) | 88 OutlineBuilder(SourceLibraryBuilder library) |
| 89 : library = library, | 89 : library = library, |
| 90 isDartLibrary = library.uri.scheme == "dart"; | 90 isDartLibrary = library.uri.scheme == "dart"; |
| 91 | 91 |
| 92 @override | 92 @override |
| 93 Uri get uri => library.uri; | 93 Uri get uri => library.fileUri; |
| 94 | 94 |
| 95 @override | 95 @override |
| 96 void endMetadata(Token beginToken, Token periodBeforeName, Token endToken) { | 96 void endMetadata(Token beginToken, Token periodBeforeName, Token endToken) { |
| 97 debugEvent("Metadata"); | 97 debugEvent("Metadata"); |
| 98 List arguments = pop(); | 98 List arguments = pop(); |
| 99 String postfix = popIfNotNull(periodBeforeName); | 99 String postfix = popIfNotNull(periodBeforeName); |
| 100 List<TypeBuilder> typeArguments = pop(); | 100 List<TypeBuilder> typeArguments = pop(); |
| 101 if (arguments == null) { | 101 if (arguments == null) { |
| 102 String expression = pop(); | 102 String expression = pop(); |
| 103 push(new MetadataBuilder.fromExpression(expression, postfix, library, | 103 push(new MetadataBuilder.fromExpression(expression, postfix, library, |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 Link<Token> handleMemberName(Link<Token> identifiers) { | 624 Link<Token> handleMemberName(Link<Token> identifiers) { |
| 625 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 625 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
| 626 return removeNativeClause(identifiers); | 626 return removeNativeClause(identifiers); |
| 627 } | 627 } |
| 628 | 628 |
| 629 @override | 629 @override |
| 630 void debugEvent(String name) { | 630 void debugEvent(String name) { |
| 631 // printEvent(name); | 631 // printEvent(name); |
| 632 } | 632 } |
| 633 } | 633 } |
| OLD | NEW |