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

Side by Side Diff: pkg/compiler/lib/src/constants/values.dart

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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.constants.values; 5 library dart2js.constants.values;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../core_types.dart'; 8 import '../core_types.dart';
9 import '../dart_types.dart'; 9 import '../dart_types.dart';
10 import '../elements/elements.dart' 10 import '../elements/elements.dart'
11 show ClassElement, Element, FieldElement, FunctionElement, PrefixElement; 11 show FieldElement, FunctionElement, PrefixElement;
12 import '../tree/tree.dart' hide unparse; 12 import '../tree/tree.dart' hide unparse;
13 import '../util/util.dart' show Hashing; 13 import '../util/util.dart' show Hashing;
14 14
15 abstract class ConstantValueVisitor<R, A> { 15 abstract class ConstantValueVisitor<R, A> {
16 const ConstantValueVisitor(); 16 const ConstantValueVisitor();
17 17
18 R visitFunction(FunctionConstantValue constant, A arg); 18 R visitFunction(FunctionConstantValue constant, A arg);
19 R visitNull(NullConstantValue constant, A arg); 19 R visitNull(NullConstantValue constant, A arg);
20 R visitInt(IntConstantValue constant, A arg); 20 R visitInt(IntConstantValue constant, A arg);
21 R visitDouble(DoubleConstantValue constant, A arg); 21 R visitDouble(DoubleConstantValue constant, A arg);
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 769
770 @override 770 @override
771 DartType getType(CoreTypes types) => const DynamicType(); 771 DartType getType(CoreTypes types) => const DynamicType();
772 772
773 @override 773 @override
774 String toStructuredString() => 'NonConstant'; 774 String toStructuredString() => 'NonConstant';
775 775
776 @override 776 @override
777 String unparse() => '>>non-constant<<'; 777 String unparse() => '>>non-constant<<';
778 } 778 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/expressions.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698