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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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 '../common_elements.dart'; 8 import '../common_elements.dart';
9 import '../elements/entities.dart'; 9 import '../elements/entities.dart';
10 import '../elements/types.dart'; 10 import '../elements/types.dart';
(...skipping 12 matching lines...) Expand all
23 TYPE, 23 TYPE,
24 INTERCEPTOR, 24 INTERCEPTOR,
25 SYNTHETIC, 25 SYNTHETIC,
26 DEFERRED, 26 DEFERRED,
27 NON_CONSTANT, 27 NON_CONSTANT,
28 } 28 }
29 29
30 abstract class ConstantValueVisitor<R, A> { 30 abstract class ConstantValueVisitor<R, A> {
31 const ConstantValueVisitor(); 31 const ConstantValueVisitor();
32 32
33 R visitFunction(FunctionConstantValue constant, A arg); 33 R visitFunction(covariant FunctionConstantValue constant, covariant A arg);
34 R visitNull(NullConstantValue constant, A arg); 34 R visitNull(covariant NullConstantValue constant, covariant A arg);
35 R visitInt(IntConstantValue constant, A arg); 35 R visitInt(covariant IntConstantValue constant, covariant A arg);
36 R visitDouble(DoubleConstantValue constant, A arg); 36 R visitDouble(covariant DoubleConstantValue constant, covariant A arg);
37 R visitBool(BoolConstantValue constant, A arg); 37 R visitBool(covariant BoolConstantValue constant, covariant A arg);
38 R visitString(StringConstantValue constant, A arg); 38 R visitString(covariant StringConstantValue constant, covariant A arg);
39 R visitList(ListConstantValue constant, A arg); 39 R visitList(covariant ListConstantValue constant, covariant A arg);
40 R visitMap(MapConstantValue constant, A arg); 40 R visitMap(covariant MapConstantValue constant, covariant A arg);
41 R visitConstructed(ConstructedConstantValue constant, A arg); 41 R visitConstructed(
42 R visitType(TypeConstantValue constant, A arg); 42 covariant ConstructedConstantValue constant, covariant A arg);
43 R visitInterceptor(InterceptorConstantValue constant, A arg); 43 R visitType(covariant TypeConstantValue constant, covariant A arg);
44 R visitSynthetic(SyntheticConstantValue constant, A arg); 44 R visitInterceptor(
45 R visitDeferred(DeferredConstantValue constant, A arg); 45 covariant InterceptorConstantValue constant, covariant A arg);
46 R visitNonConstant(NonConstantValue constant, A arg); 46 R visitSynthetic(covariant SyntheticConstantValue constant, covariant A arg);
47 R visitDeferred(covariant DeferredConstantValue constant, covariant A arg);
48 R visitNonConstant(covariant NonConstantValue constant, covariant A arg);
47 } 49 }
48 50
49 abstract class ConstantValue { 51 abstract class ConstantValue {
50 const ConstantValue(); 52 const ConstantValue();
51 53
52 /// `true` if this is a valid constant value. 54 /// `true` if this is a valid constant value.
53 bool get isConstant => true; 55 bool get isConstant => true;
54 56
55 bool get isNull => false; 57 bool get isNull => false;
56 bool get isBool => false; 58 bool get isBool => false;
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 DartType getType(CommonElements types) => types.dynamicType; 796 DartType getType(CommonElements types) => types.dynamicType;
795 797
796 ConstantValueKind get kind => ConstantValueKind.NON_CONSTANT; 798 ConstantValueKind get kind => ConstantValueKind.NON_CONSTANT;
797 799
798 @override 800 @override
799 String toStructuredText() => 'NonConstant'; 801 String toStructuredText() => 'NonConstant';
800 802
801 @override 803 @override
802 String toDartText() => '>>non-constant<<'; 804 String toDartText() => '>>non-constant<<';
803 } 805 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/expressions.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698