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

Side by Side Diff: tests/compiler/dart2js/analyze_dart2js_helpers_test.dart

Issue 2669703003: Refactor ConstantExpression/ConstantConstructor to use entities. (Closed)
Patch Set: Created 3 years, 10 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.analyze_helpers.test; 5 library dart2js.analyze_helpers.test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/compiler_new.dart' show Diagnostic; 10 import 'package:compiler/compiler_new.dart' show Diagnostic;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 NodeList arguments, 204 NodeList arguments,
205 CallStructure callStructure, 205 CallStructure callStructure,
206 _) { 206 _) {
207 checkAccess(node, constructor); 207 checkAccess(node, constructor);
208 apply(arguments); 208 apply(arguments);
209 } 209 }
210 210
211 @override 211 @override
212 void visitConstConstructorInvoke( 212 void visitConstConstructorInvoke(
213 NewExpression node, ConstructedConstantExpression constant, _) { 213 NewExpression node, ConstructedConstantExpression constant, _) {
214 checkAccess(node, constant.target); 214 ConstructorElement constructor = constant.target;
215 checkAccess(node, constructor);
215 } 216 }
216 } 217 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | tests/compiler/dart2js/constant_expression_evaluate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698