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

Side by Side Diff: lib/compiler/implementation/constants.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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 part of dart2js;
6
5 abstract class ConstantVisitor<R> { 7 abstract class ConstantVisitor<R> {
6 R visitSentinel(SentinelConstant constant); 8 R visitSentinel(SentinelConstant constant);
7 R visitFunction(FunctionConstant constant); 9 R visitFunction(FunctionConstant constant);
8 R visitNull(NullConstant constant); 10 R visitNull(NullConstant constant);
9 R visitInt(IntConstant constant); 11 R visitInt(IntConstant constant);
10 R visitDouble(DoubleConstant constant); 12 R visitDouble(DoubleConstant constant);
11 R visitTrue(TrueConstant constant); 13 R visitTrue(TrueConstant constant);
12 R visitFalse(FalseConstant constant); 14 R visitFalse(FalseConstant constant);
13 R visitString(StringConstant constant); 15 R visitString(StringConstant constant);
14 R visitList(ListConstant constant); 16 R visitList(ListConstant constant);
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 for (int i = 0; i < fields.length; i++) { 447 for (int i = 0; i < fields.length; i++) {
446 if (fields[i] != other.fields[i]) return false; 448 if (fields[i] != other.fields[i]) return false;
447 } 449 }
448 return true; 450 return true;
449 } 451 }
450 452
451 List<Constant> getDependencies() => fields; 453 List<Constant> getDependencies() => fields;
452 454
453 accept(ConstantVisitor visitor) => visitor.visitConstructed(this); 455 accept(ConstantVisitor visitor) => visitor.visitConstructed(this);
454 } 456 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/constant_system_dart.dart ('k') | lib/compiler/implementation/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698