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

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

Issue 2715223002: Use the correct URI for diagnostics during outline construction. (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 | « no previous file | 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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698