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

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

Issue 1785633002: Make source information mandatory for building send-like node in CPS (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 /// Generate [SourceInformation] for the throw in [node]. 99 /// Generate [SourceInformation] for the throw in [node].
100 SourceInformation buildThrow(Node node) => null; 100 SourceInformation buildThrow(Node node) => null;
101 101
102 /// Generate [SourceInformation] for the assignment in [node]. 102 /// Generate [SourceInformation] for the assignment in [node].
103 SourceInformation buildAssignment(Node node) => null; 103 SourceInformation buildAssignment(Node node) => null;
104 104
105 /// Generate [SourceInformation] for the variable declaration inserted as 105 /// Generate [SourceInformation] for the variable declaration inserted as
106 /// first statement of a function. 106 /// first statement of a function.
107 SourceInformation buildVariableDeclaration() => null; 107 SourceInformation buildVariableDeclaration() => null;
108
109 /// Generate [SourceInformation] for an invocation of a foreign method.
110 SourceInformation buildForeignCode(Node node) => null;
111
112 /// Generate [SourceInformation] for a string interpolation of [node].
113 SourceInformation buildStringInterpolation(Node node) => null;
114
115 /// Generate [SourceInformation] for the for-in `iterator` access in [node].
116 SourceInformation buildForInIterator(Node node) => null;
117
118 /// Generate [SourceInformation] for the for-in `moveNext` call in [node].
119 SourceInformation buildForInMoveNext(Node node) => null;
120
121 /// Generate [SourceInformation] for the for-in `current` access in [node].
122 SourceInformation buildForInCurrent(Node node) => null;
123
124 /// Generate [SourceInformation] for the for-in variable assignment in [node].
125 SourceInformation buildForInSet(Node node) => null;
126
127 /// Generate [SourceInformation] for the operator `[]` access in [node].
128 SourceInformation buildIndex(Node node) => null;
129
130 /// Generate [SourceInformation] for the operator `[]=` assignment in [node].
131 SourceInformation buildIndexSet(Node node) => null;
132
133 /// Generate [SourceInformation] for the binary operation in [node].
134 SourceInformation buildBinary(Node node) => null;
135
136 /// Generate [SourceInformation] for the unary operator in [node].
137 SourceInformation buildCatch(Node node) => null;
138
139 /// Generate [SourceInformation] for the is-test in [node].
140 SourceInformation buildIs(Node node) => null;
141
142 /// Generate [SourceInformation] for the as-cast in [node].
143 SourceInformation buildAs(Node node) => null;
108 } 144 }
109 145
110 /// A location in a source file. 146 /// A location in a source file.
111 abstract class SourceLocation { 147 abstract class SourceLocation {
112 final SourceFile _sourceFile; 148 final SourceFile _sourceFile;
113 int _line; 149 int _line;
114 150
115 SourceLocation(this._sourceFile) { 151 SourceLocation(this._sourceFile) {
116 assert(isValid); 152 assert(isValid);
117 } 153 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 return '${computeElementNameForSourceMaps(local.executableContext)}.$name'; 235 return '${computeElementNameForSourceMaps(local.executableContext)}.$name';
200 } else if (element.enclosingClass != null) { 236 } else if (element.enclosingClass != null) {
201 if (element.enclosingClass.isClosure) { 237 if (element.enclosingClass.isClosure) {
202 return computeElementNameForSourceMaps(element.enclosingClass); 238 return computeElementNameForSourceMaps(element.enclosingClass);
203 } 239 }
204 return '${element.enclosingClass.name}.${element.name}'; 240 return '${element.enclosingClass.name}.${element.name}';
205 } else { 241 } else {
206 return element.name; 242 return element.name;
207 } 243 }
208 } 244 }
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