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

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

Issue 1250633002: Add operators test to source_mapping_test. (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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 /// Generate [SourceInformation] for the return [node]. 68 /// Generate [SourceInformation] for the return [node].
69 SourceInformation buildReturn(Node node) => null; 69 SourceInformation buildReturn(Node node) => null;
70 70
71 /// Generate [SourceInformation] for an implicit return in [element]. 71 /// Generate [SourceInformation] for an implicit return in [element].
72 SourceInformation buildImplicitReturn(AstElement element) => null; 72 SourceInformation buildImplicitReturn(AstElement element) => null;
73 73
74 /// Generate [SourceInformation] for the loop [node]. 74 /// Generate [SourceInformation] for the loop [node].
75 SourceInformation buildLoop(Node node) => null; 75 SourceInformation buildLoop(Node node) => null;
76 76
77 /// Generate [SourceInformation] for the read access in [node]. 77 /// Generate [SourceInformation] for a read access like `a.b` where in
78 /// [receiver] points to the left-most part of the access, `a` in the example,
79 /// and [property] points to the 'name' of accessed property, `b` in the
80 /// example.
78 SourceInformation buildGet(Node node) => null; 81 SourceInformation buildGet(Node node) => null;
79 82
80 /// Generate [SourceInformation] for an invocation like `a.b()` where 83 /// Generate [SourceInformation] for the read access in [node].
81 /// [receiver] points to the left-most part of the invocation, `a` in the
82 /// example, and [call] points the 'name' of the call, `b` or `()` depending
83 /// on whether `b` is a method or a field/getter.
84 SourceInformation buildCall(Node receiver, Node call) => null; 84 SourceInformation buildCall(Node receiver, Node call) => null;
85 85
86 /// Generate [SourceInformation] for the if statement in [node]. 86 /// Generate [SourceInformation] for the if statement in [node].
87 SourceInformation buildIf(Node node) => null; 87 SourceInformation buildIf(Node node) => null;
88 88
89 /// Generate [SourceInformation] for the constructor invocation in [node]. 89 /// Generate [SourceInformation] for the constructor invocation in [node].
90 SourceInformation buildNew(Node node) => null; 90 SourceInformation buildNew(Node node) => null;
91 91
92 /// Generate [SourceInformation] for the throw in [node]. 92 /// Generate [SourceInformation] for the throw in [node].
93 SourceInformation buildThrow(Node node) => null; 93 SourceInformation buildThrow(Node node) => null;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 return '${computeElementNameForSourceMaps(local.executableContext)}.$name'; 188 return '${computeElementNameForSourceMaps(local.executableContext)}.$name';
189 } else if (element.enclosingClass != null) { 189 } else if (element.enclosingClass != null) {
190 if (element.enclosingClass.isClosure) { 190 if (element.enclosingClass.isClosure) {
191 return computeElementNameForSourceMaps(element.enclosingClass); 191 return computeElementNameForSourceMaps(element.enclosingClass);
192 } 192 }
193 return '${element.enclosingClass.name}.${element.name}'; 193 return '${element.enclosingClass.name}.${element.name}';
194 } else { 194 } else {
195 return element.name; 195 return element.name;
196 } 196 }
197 } 197 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/io/position_information.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698