OLD | NEW |
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 part of dart2js; | |
6 | |
7 abstract class ConstantVisitor<R> { | 5 abstract class ConstantVisitor<R> { |
8 R visitSentinel(SentinelConstant constant); | 6 R visitSentinel(SentinelConstant constant); |
9 R visitFunction(FunctionConstant constant); | 7 R visitFunction(FunctionConstant constant); |
10 R visitNull(NullConstant constant); | 8 R visitNull(NullConstant constant); |
11 R visitInt(IntConstant constant); | 9 R visitInt(IntConstant constant); |
12 R visitDouble(DoubleConstant constant); | 10 R visitDouble(DoubleConstant constant); |
13 R visitTrue(TrueConstant constant); | 11 R visitTrue(TrueConstant constant); |
14 R visitFalse(FalseConstant constant); | 12 R visitFalse(FalseConstant constant); |
15 R visitString(StringConstant constant); | 13 R visitString(StringConstant constant); |
16 R visitList(ListConstant constant); | 14 R visitList(ListConstant constant); |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 for (int i = 0; i < fields.length; i++) { | 445 for (int i = 0; i < fields.length; i++) { |
448 if (fields[i] != other.fields[i]) return false; | 446 if (fields[i] != other.fields[i]) return false; |
449 } | 447 } |
450 return true; | 448 return true; |
451 } | 449 } |
452 | 450 |
453 List<Constant> getDependencies() => fields; | 451 List<Constant> getDependencies() => fields; |
454 | 452 |
455 accept(ConstantVisitor visitor) => visitor.visitConstructed(this); | 453 accept(ConstantVisitor visitor) => visitor.visitConstructed(this); |
456 } | 454 } |
OLD | NEW |