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

Unified Diff: lib/unresolved.dart

Issue 2420053003: Update kernel module. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | submodules.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unresolved.dart
diff --git a/lib/unresolved.dart b/lib/unresolved.dart
index 6220ab139b6081fe8b316876e3bdf7a23b78d9b3..5778833d4e53f3f8a960fb739541b6873484ef76 100644
--- a/lib/unresolved.dart
+++ b/lib/unresolved.dart
@@ -410,7 +410,7 @@ abstract class RastaUnresolved {
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
.buildCompoundAssignment(new ir.Name(operator.selectorName),
- visitForValue(rhs));
+ visitForValue(rhs), voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperGet(
@@ -524,7 +524,7 @@ abstract class RastaUnresolved {
Node rhs,
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
- .buildAssignment(visitForValue(rhs));
+ .buildAssignment(visitForValue(rhs), voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperInvoke(
@@ -574,7 +574,8 @@ abstract class RastaUnresolved {
_) {
return buildUnresolvedSuperPropertyAccessor('${node.selector}', getter)
.buildCompoundAssignment(
- new ir.Name(operator.selectorName), visitForValue(rhs));
+ new ir.Name(operator.selectorName), visitForValue(rhs),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterCompoundIndexSet(
@@ -588,7 +589,7 @@ abstract class RastaUnresolved {
return buildUnresolvedSuperIndexAccessor(index, element)
.buildCompoundAssignment(
new ir.Name(operator.selectorName),
- visitForValue(rhs));
+ visitForValue(rhs), voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterIndexPostfix(
@@ -599,7 +600,8 @@ abstract class RastaUnresolved {
IncDecOperator operator,
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
- .buildPostfixIncrement(new ir.Name(operator.selectorName));
+ .buildPostfixIncrement(new ir.Name(operator.selectorName),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterIndexPrefix(
@@ -610,7 +612,8 @@ abstract class RastaUnresolved {
IncDecOperator operator,
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
- .buildPrefixIncrement(new ir.Name(operator.selectorName));
+ .buildPrefixIncrement(new ir.Name(operator.selectorName),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterPostfix(
@@ -620,7 +623,8 @@ abstract class RastaUnresolved {
IncDecOperator operator,
_) {
return buildUnresolvedSuperPropertyAccessor('${node.selector}', getter)
- .buildPostfixIncrement(new ir.Name(operator.selectorName));
+ .buildPostfixIncrement(new ir.Name(operator.selectorName),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterPrefix(
@@ -630,7 +634,8 @@ abstract class RastaUnresolved {
IncDecOperator operator,
_) {
return buildUnresolvedSuperPropertyAccessor('${node.selector}', getter)
- .buildPrefixIncrement(new ir.Name(operator.selectorName));
+ .buildPrefixIncrement(new ir.Name(operator.selectorName),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterSetIfNull(
@@ -640,7 +645,8 @@ abstract class RastaUnresolved {
Node rhs,
_) {
return buildUnresolvedSuperPropertyAccessor('${node.selector}', getter)
- .buildNullAwareAssignment(visitForValue(rhs));
+ .buildNullAwareAssignment(visitForValue(rhs),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperUnary(
@@ -759,7 +765,8 @@ abstract class RastaUnresolved {
Node rhs,
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
- .buildNullAwareAssignment(visitForValue(rhs));
+ .buildNullAwareAssignment(visitForValue(rhs),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSetterIndexSetIfNull(
@@ -770,7 +777,8 @@ abstract class RastaUnresolved {
Node rhs,
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
- .buildNullAwareAssignment(visitForValue(rhs));
+ .buildNullAwareAssignment(visitForValue(rhs),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperIndexSetIfNull(
@@ -780,7 +788,8 @@ abstract class RastaUnresolved {
Node rhs,
_) {
return buildUnresolvedSuperIndexAccessor(index, element)
- .buildNullAwareAssignment(visitForValue(rhs));
+ .buildNullAwareAssignment(visitForValue(rhs),
+ voidContext: isVoidContext);
}
ir.Expression visitUnresolvedSuperSet(
« no previous file with comments | « no previous file | submodules.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698