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

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

Issue 1779153002: Make source information on conditions mandatory in CPS (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
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 '../common.dart'; 7 import '../common.dart';
8 import '../elements/elements.dart' show 8 import '../elements/elements.dart' show
9 AstElement, 9 AstElement,
10 LocalElement; 10 LocalElement;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 SourceInformation buildBinary(Node node) => null; 134 SourceInformation buildBinary(Node node) => null;
135 135
136 /// Generate [SourceInformation] for the unary operator in [node]. 136 /// Generate [SourceInformation] for the unary operator in [node].
137 SourceInformation buildCatch(Node node) => null; 137 SourceInformation buildCatch(Node node) => null;
138 138
139 /// Generate [SourceInformation] for the is-test in [node]. 139 /// Generate [SourceInformation] for the is-test in [node].
140 SourceInformation buildIs(Node node) => null; 140 SourceInformation buildIs(Node node) => null;
141 141
142 /// Generate [SourceInformation] for the as-cast in [node]. 142 /// Generate [SourceInformation] for the as-cast in [node].
143 SourceInformation buildAs(Node node) => null; 143 SourceInformation buildAs(Node node) => null;
144
145 /// Generate [SourceInformation] for the switch statement [node].
146 SourceInformation buildSwitch(Node node) => null;
147
148 /// Generate [SourceInformation] for the switch case in [node].
149 SourceInformation buildSwitchCase(Node node) => null;
144 } 150 }
145 151
146 /// A location in a source file. 152 /// A location in a source file.
147 abstract class SourceLocation { 153 abstract class SourceLocation {
148 final SourceFile _sourceFile; 154 final SourceFile _sourceFile;
149 int _line; 155 int _line;
150 156
151 SourceLocation(this._sourceFile) { 157 SourceLocation(this._sourceFile) {
152 assert(isValid); 158 assert(isValid);
153 } 159 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 return '${computeElementNameForSourceMaps(local.executableContext)}.$name'; 241 return '${computeElementNameForSourceMaps(local.executableContext)}.$name';
236 } else if (element.enclosingClass != null) { 242 } else if (element.enclosingClass != null) {
237 if (element.enclosingClass.isClosure) { 243 if (element.enclosingClass.isClosure) {
238 return computeElementNameForSourceMaps(element.enclosingClass); 244 return computeElementNameForSourceMaps(element.enclosingClass);
239 } 245 }
240 return '${element.enclosingClass.name}.${element.name}'; 246 return '${element.enclosingClass.name}.${element.name}';
241 } else { 247 } else {
242 return element.name; 248 return element.name;
243 } 249 }
244 } 250 }
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