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

Side by Side Diff: pkg/compiler/lib/src/dart_backend/backend_ast_nodes.dart

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 backend_ast_nodes; 5 library backend_ast_nodes;
6 6
7 import '../constants/values.dart' as values; 7 import '../constants/values.dart' as values;
8 import '../dart_types.dart' as types; 8 import '../dart_types.dart' as types;
9 import '../elements/elements.dart' as elements; 9 import '../elements/elements.dart' as elements;
10 import '../tree/tree.dart' as tree; 10 import '../tree/tree.dart' as tree;
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 write('-1/0.0'); 845 write('-1/0.0');
846 }); 846 });
847 } else if (v.isNaN) { 847 } else if (v.isNaN) {
848 withPrecedence(MULTIPLICATIVE, () { 848 withPrecedence(MULTIPLICATIVE, () {
849 write('0/0.0'); 849 write('0/0.0');
850 }); 850 });
851 } else { 851 } else {
852 write(v.toString()); 852 write(v.toString());
853 } 853 }
854 } else { 854 } else {
855 write(e.value.unparse()); 855 write(e.value.toDartText());
856 } 856 }
857 } else if (e is LiteralList) { 857 } else if (e is LiteralList) {
858 if (e.isConst) { 858 if (e.isConst) {
859 write(' const '); 859 write(' const ');
860 } 860 }
861 if (e.typeArgument != null) { 861 if (e.typeArgument != null) {
862 write('<'); 862 write('<');
863 writeType(e.typeArgument); 863 writeType(e.typeArgument);
864 write('>'); 864 write('>');
865 } 865 }
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 final StringChunk previous; 1547 final StringChunk previous;
1548 final tree.StringQuoting quoting; 1548 final tree.StringQuoting quoting;
1549 num cost; 1549 num cost;
1550 1550
1551 OpenStringChunk(this.previous, this.quoting, this.cost); 1551 OpenStringChunk(this.previous, this.quoting, this.cost);
1552 1552
1553 StringChunk end(int endIndex) { 1553 StringChunk end(int endIndex) {
1554 return new StringChunk(previous, quoting, endIndex); 1554 return new StringChunk(previous, quoting, endIndex);
1555 } 1555 }
1556 } 1556 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698