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

Side by Side Diff: pkg/compiler/lib/src/io/source_information.dart

Issue 1229673006: Generated source mapping through CPS. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.source_information; 5 library dart2js.source_information;
6 6
7 import '../dart2jslib.dart' show SourceSpan, MessageKind; 7 import '../dart2jslib.dart' show SourceSpan, MessageKind;
8 import '../elements/elements.dart' show 8 import '../elements/elements.dart' show
9 AstElement, 9 AstElement,
10 LocalElement; 10 LocalElement;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 /// Create a [SourceInformationBuilder] for [element]. 54 /// Create a [SourceInformationBuilder] for [element].
55 SourceInformationBuilder forContext(AstElement element) => this; 55 SourceInformationBuilder forContext(AstElement element) => this;
56 56
57 /// Generate [SourceInformation] the declaration of [element]. 57 /// Generate [SourceInformation] the declaration of [element].
58 SourceInformation buildDeclaration(AstElement element) => null; 58 SourceInformation buildDeclaration(AstElement element) => null;
59 59
60 /// Generate [SourceInformation] for the generic [node]. 60 /// Generate [SourceInformation] for the generic [node].
61 @deprecated 61 @deprecated
62 SourceInformation buildGeneric(Node node) => null; 62 SourceInformation buildGeneric(Node node) => null;
63 63
64 /// Generate [SourceInformation] for an instantiation of a class using [node]
65 /// for the source position.
66 SourceInformation buildCreate(Node node) => null;
67
64 /// Generate [SourceInformation] for the return [node]. 68 /// Generate [SourceInformation] for the return [node].
65 SourceInformation buildReturn(Node node) => null; 69 SourceInformation buildReturn(Node node) => null;
66 70
67 /// Generate [SourceInformation] for an implicit return in [element]. 71 /// Generate [SourceInformation] for an implicit return in [element].
68 SourceInformation buildImplicitReturn(AstElement element) => null; 72 SourceInformation buildImplicitReturn(AstElement element) => null;
69 73
70 /// Generate [SourceInformation] for the loop [node]. 74 /// Generate [SourceInformation] for the loop [node].
71 SourceInformation buildLoop(Node node) => null; 75 SourceInformation buildLoop(Node node) => null;
72 76
73 /// Generate [SourceInformation] for the read access in [node]. 77 /// Generate [SourceInformation] for the read access in [node].
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return '${computeElementNameForSourceMaps(local.executableContext)}.$name'; 188 return '${computeElementNameForSourceMaps(local.executableContext)}.$name';
185 } else if (element.enclosingClass != null) { 189 } else if (element.enclosingClass != null) {
186 if (element.enclosingClass.isClosure) { 190 if (element.enclosingClass.isClosure) {
187 return computeElementNameForSourceMaps(element.enclosingClass); 191 return computeElementNameForSourceMaps(element.enclosingClass);
188 } 192 }
189 return '${element.enclosingClass.name}.${element.name}'; 193 return '${element.enclosingClass.name}.${element.name}';
190 } else { 194 } else {
191 return element.name; 195 return element.name;
192 } 196 }
193 } 197 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/io/position_information.dart ('k') | pkg/compiler/lib/src/io/start_end_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698