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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart

Issue 2777093010: Use entities in NoSuchMethodRegistry (Closed)
Patch Set: Move as cast. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/locals_handler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
index 3fbfd8cb164eba963ddae0434caf0ec6706babb0..9d08775595542824d67d29cdccb646a687f6b24c 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -138,14 +138,14 @@ class KernelAstAdapter extends KernelElementAdapterMixin {
Compiler get _compiler => _backend.compiler;
TreeElements get elements => _resolvedAst.elements;
DiagnosticReporter get reporter => _compiler.reporter;
- Element get _target => _resolvedAst.element;
+ MemberElement get _target => _resolvedAst.element;
GlobalTypeInferenceResults get _globalInferenceResults =>
_compiler.globalInference.results;
- GlobalTypeInferenceElementResult _resultOf(Element e) =>
+ GlobalTypeInferenceElementResult _resultOf(MemberElement e) =>
_globalInferenceResults
- .resultOf(e is ConstructorBodyElementX ? e.constructor : e);
+ .resultOfMember(e is ConstructorBodyElementX ? e.constructor : e);
ConstantValue getConstantForSymbol(ir.SymbolLiteral node) {
if (kernel.syntheticNodes.contains(node)) {
@@ -308,8 +308,8 @@ class KernelAstAdapter extends KernelElementAdapterMixin {
}
TypeMask inferredTypeOf(ir.Member node) {
- return TypeMaskFactory.inferredTypeForElement(
- getElement(node), _globalInferenceResults);
+ return TypeMaskFactory.inferredTypeForMember(
+ getMember(node), _globalInferenceResults);
}
TypeMask selectorTypeOf(Selector selector, TypeMask mask) {
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/locals_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698