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

Side by Side Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart

Issue 3009043002: Handle variable declarations in inferrer (Closed)
Patch Set: 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 '../compiler.dart'; 9 import '../compiler.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 return getElement(variable) as LocalElement; 270 return getElement(variable) as LocalElement;
271 } 271 }
272 272
273 @override 273 @override
274 ir.FunctionNode getFunctionNodeForParameter(Local parameter) { 274 ir.FunctionNode getFunctionNodeForParameter(Local parameter) {
275 throw new UnsupportedError('KernelAstAdapter.getFunctionNodeForParameter'); 275 throw new UnsupportedError('KernelAstAdapter.getFunctionNodeForParameter');
276 } 276 }
277 277
278 @override 278 @override
279 ir.DartType getParameterType(Local parameter) { 279 DartType getLocalType(KernelToElementMap elementMap, Local local) {
280 throw new UnsupportedError('KernelAstAdapter.getParameterType'); 280 throw new UnsupportedError('KernelAstAdapter.getLocalType');
281 } 281 }
282 282
283 @override 283 @override
284 JumpTarget getJumpTargetForBreak(ir.BreakStatement node) { 284 JumpTarget getJumpTargetForBreak(ir.BreakStatement node) {
285 return getJumpTarget(node.target); 285 return getJumpTarget(node.target);
286 } 286 }
287 287
288 @override 288 @override
289 bool generateContinueForBreak(ir.BreakStatement node) => false; 289 bool generateContinueForBreak(ir.BreakStatement node) => false;
290 290
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 TypeMask selectorTypeOf(Selector selector, TypeMask mask) { 745 TypeMask selectorTypeOf(Selector selector, TypeMask mask) {
746 return TypeMaskFactory.inferredTypeForSelector( 746 return TypeMaskFactory.inferredTypeForSelector(
747 selector, mask, _globalInferenceResults); 747 selector, mask, _globalInferenceResults);
748 } 748 }
749 749
750 TypeMask typeFromNativeBehavior( 750 TypeMask typeFromNativeBehavior(
751 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) { 751 native.NativeBehavior nativeBehavior, ClosedWorld closedWorld) {
752 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld); 752 return TypeMaskFactory.fromNativeBehavior(nativeBehavior, closedWorld);
753 } 753 }
754 } 754 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/indexed.dart ('k') | tests/compiler/dart2js/equivalence/id_equivalence_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698