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

Unified Diff: pkg/front_end/lib/src/fasta/operator.dart

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/modifier.dart ('k') | pkg/front_end/lib/src/fasta/outline.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/operator.dart
diff --git a/pkg/front_end/lib/src/fasta/operator.dart b/pkg/front_end/lib/src/fasta/operator.dart
index d32e35de63582d1287bf9f50d746898a7daaaca9..322f1243577b6f868aca83a1ca5bde5b1056f32f 100644
--- a/pkg/front_end/lib/src/fasta/operator.dart
+++ b/pkg/front_end/lib/src/fasta/operator.dart
@@ -56,26 +56,46 @@ Operator operatorFromString(String string) {
String operatorToString(Operator operator) {
switch (operator) {
- case Operator.add: return "+";
- case Operator.bitwiseAnd: return "&";
- case Operator.bitwiseNot: return "~";
- case Operator.bitwiseOr: return "|";
- case Operator.bitwiseXor: return "^";
- case Operator.divide: return "/";
- case Operator.equals: return "==";
- case Operator.greaterThan: return ">";
- case Operator.greaterThanEquals: return ">=";
- case Operator.indexGet: return "[]";
- case Operator.indexSet: return "[]=";
- case Operator.leftShift: return "<<";
- case Operator.lessThan: return "<";
- case Operator.lessThanEquals: return "<=";
- case Operator.modulo: return "%";
- case Operator.multiply: return "*";
- case Operator.rightShift: return ">>";
- case Operator.subtract: return "-";
- case Operator.truncatingDivide: return "~/";
- case Operator.unaryMinus: return "unary-";
+ case Operator.add:
+ return "+";
+ case Operator.bitwiseAnd:
+ return "&";
+ case Operator.bitwiseNot:
+ return "~";
+ case Operator.bitwiseOr:
+ return "|";
+ case Operator.bitwiseXor:
+ return "^";
+ case Operator.divide:
+ return "/";
+ case Operator.equals:
+ return "==";
+ case Operator.greaterThan:
+ return ">";
+ case Operator.greaterThanEquals:
+ return ">=";
+ case Operator.indexGet:
+ return "[]";
+ case Operator.indexSet:
+ return "[]=";
+ case Operator.leftShift:
+ return "<<";
+ case Operator.lessThan:
+ return "<";
+ case Operator.lessThanEquals:
+ return "<=";
+ case Operator.modulo:
+ return "%";
+ case Operator.multiply:
+ return "*";
+ case Operator.rightShift:
+ return ">>";
+ case Operator.subtract:
+ return "-";
+ case Operator.truncatingDivide:
+ return "~/";
+ case Operator.unaryMinus:
+ return "unary-";
}
return null;
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/modifier.dart ('k') | pkg/front_end/lib/src/fasta/outline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698