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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 3009593002: It's alive (first kernel inference test) (Closed)
Patch Set: Updated cf. comment Created 3 years, 3 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../common_elements.dart'; 10 import '../common_elements.dart';
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 /// Returns the [LibraryEntity] corresponding to the library [node]. 180 /// Returns the [LibraryEntity] corresponding to the library [node].
181 LibraryEntity getLibrary(ir.Library node); 181 LibraryEntity getLibrary(ir.Library node);
182 182
183 /// Returns the [js.Template] for the `JsBuiltin` [constant] value. 183 /// Returns the [js.Template] for the `JsBuiltin` [constant] value.
184 js.Template getJsBuiltinTemplate( 184 js.Template getJsBuiltinTemplate(
185 ConstantValue constant, CodeEmitterTask emitter); 185 ConstantValue constant, CodeEmitterTask emitter);
186 186
187 /// Return the [ConstantValue] the initial value of [field] or `null` if 187 /// Return the [ConstantValue] the initial value of [field] or `null` if
188 /// the initializer is not a constant expression. 188 /// the initializer is not a constant expression.
189 ConstantValue getFieldConstantValue(ir.Field field); 189 ConstantValue getFieldConstantValue(FieldEntity field);
190 190
191 /// Returns the `noSuchMethod` [FunctionEntity] call from a 191 /// Returns the `noSuchMethod` [FunctionEntity] call from a
192 /// `super.noSuchMethod` invocation within [cls]. 192 /// `super.noSuchMethod` invocation within [cls].
193 FunctionEntity getSuperNoSuchMethod(ClassEntity cls); 193 FunctionEntity getSuperNoSuchMethod(ClassEntity cls);
194 194
195 /// Returns a [Spannable] for a message pointing to the IR [node] in the 195 /// Returns a [Spannable] for a message pointing to the IR [node] in the
196 /// context of [member]. 196 /// context of [member].
197 Spannable getSpannable(MemberEntity member, ir.Node node); 197 Spannable getSpannable(MemberEntity member, ir.Node node);
198 198
199 /// Returns the constructor body entity corresponding to [constructor]. 199 /// Returns the constructor body entity corresponding to [constructor].
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 uri = Uri.parse(node.location.file); 463 uri = Uri.parse(node.location.file);
464 break; 464 break;
465 } 465 }
466 node = node.parent; 466 node = node.parent;
467 } 467 }
468 if (uri != null) { 468 if (uri != null) {
469 return new SourceSpan(uri, offset, offset + 1); 469 return new SourceSpan(uri, offset, offset + 1);
470 } 470 }
471 return null; 471 return null;
472 } 472 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_model/closure.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698