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

Unified Diff: pkg/compiler/lib/src/resolution/operators.dart

Issue 1881013002: Expand ResolvedAst to handle synthetic constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + fix test, cps and compilation units for injected members. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/enum_creator.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/operators.dart
diff --git a/pkg/compiler/lib/src/resolution/operators.dart b/pkg/compiler/lib/src/resolution/operators.dart
index 06fd4683a108dbb68ac387c4e26307f02d08129f..499192f49a288e2f046be5585a9de02d4a62a358 100644
--- a/pkg/compiler/lib/src/resolution/operators.dart
+++ b/pkg/compiler/lib/src/resolution/operators.dart
@@ -430,19 +430,32 @@ class AssignmentOperator {
static AssignmentOperator fromKind(AssignmentOperatorKind kind) {
switch (kind) {
- case AssignmentOperatorKind.ASSIGN: return ASSIGN;
- case AssignmentOperatorKind.IF_NULL: return IF_NULL;
- case AssignmentOperatorKind.ADD: return ADD;
- case AssignmentOperatorKind.SUB: return SUB;
- case AssignmentOperatorKind.MUL: return MUL;
- case AssignmentOperatorKind.DIV: return DIV;
- case AssignmentOperatorKind.IDIV: return IDIV;
- case AssignmentOperatorKind.MOD: return MOD;
- case AssignmentOperatorKind.SHL: return SHL;
- case AssignmentOperatorKind.SHR: return SHR;
- case AssignmentOperatorKind.AND: return AND;
- case AssignmentOperatorKind.OR: return OR;
- case AssignmentOperatorKind.XOR: return XOR;
+ case AssignmentOperatorKind.ASSIGN:
+ return ASSIGN;
+ case AssignmentOperatorKind.IF_NULL:
+ return IF_NULL;
+ case AssignmentOperatorKind.ADD:
+ return ADD;
+ case AssignmentOperatorKind.SUB:
+ return SUB;
+ case AssignmentOperatorKind.MUL:
+ return MUL;
+ case AssignmentOperatorKind.DIV:
+ return DIV;
+ case AssignmentOperatorKind.IDIV:
+ return IDIV;
+ case AssignmentOperatorKind.MOD:
+ return MOD;
+ case AssignmentOperatorKind.SHL:
+ return SHL;
+ case AssignmentOperatorKind.SHR:
+ return SHR;
+ case AssignmentOperatorKind.AND:
+ return AND;
+ case AssignmentOperatorKind.OR:
+ return OR;
+ case AssignmentOperatorKind.XOR:
+ return XOR;
}
}
}
@@ -481,8 +494,10 @@ class IncDecOperator {
static IncDecOperator fromKind(IncDecOperatorKind kind) {
switch (kind) {
- case IncDecOperatorKind.INC: return INC;
- case IncDecOperatorKind.DEC: return DEC;
+ case IncDecOperatorKind.INC:
+ return INC;
+ case IncDecOperatorKind.DEC:
+ return DEC;
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/enum_creator.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698