@@ -228,7 +228,7 @@ abstract class TypeInformation {
228228 }
229229
230230 void giveUp (InferrerEngine inferrer, {bool clearInputs = true }) {
231- _flags += _Flag .abandonInferencing;
231+ _flags = _flags. add ( _Flag .abandonInferencing) ;
232232 // Do not remove [this] as a user of nodes in [inputs],
233233 // because our tracing analysis could be interested in tracing
234234 // this node.
@@ -275,14 +275,14 @@ abstract class TypeInformation {
275275 // Do not remove users because the tracing analysis could be interested
276276 // in tracing the users of this node.
277277 _inputs = STOP_TRACKING_INPUTS_MARKER ;
278- _flags += _Flag .abandonInferencing;
279- _flags += _Flag .isStable;
278+ _flags = _flags. add ( _Flag .abandonInferencing) ;
279+ _flags = _flags. add ( _Flag .isStable) ;
280280 }
281281
282282 void maybeResume () {
283283 if (! mightResume) return ;
284- _flags -= _Flag .abandonInferencing;
285- _flags -= _Flag .doNotEnqueue;
284+ _flags = _flags. remove ( _Flag .abandonInferencing) ;
285+ _flags = _flags. remove ( _Flag .doNotEnqueue) ;
286286 }
287287
288288 /// Destroys information not needed after type inference.
@@ -501,10 +501,10 @@ abstract class MemberTypeInformation extends ElementTypeInformation
501501 void markCalled () {
502502 if (_flags.contains (_Flag .isCalled)) {
503503 if (! _flags.contains (_Flag .isCalledMoreThanOnce)) {
504- _flags += _Flag .isCalledMoreThanOnce;
504+ _flags = _flags. add ( _Flag .isCalledMoreThanOnce) ;
505505 }
506506 } else {
507- _flags += _Flag .isCalled;
507+ _flags = _flags. add ( _Flag .isCalled) ;
508508 }
509509 }
510510
@@ -809,7 +809,7 @@ class ParameterTypeInformation extends ElementTypeInformation {
809809 .abstractValue,
810810 _inputType = abstractValueDomain.uncomputedType,
811811 super ._internal () {
812- _flags += _Flag .isClosureParameter;
812+ _flags = _flags. add ( _Flag .isClosureParameter) ;
813813 }
814814
815815 ParameterTypeInformation .static (
@@ -834,7 +834,7 @@ class ParameterTypeInformation extends ElementTypeInformation {
834834 _createInstanceMemberStaticType (abstractValueDomain, type, _method),
835835 _inputType = abstractValueDomain.uncomputedType,
836836 super ._withInputs () {
837- _flags += _Flag .isInstanceMemberParameter;
837+ _flags = _flags. add ( _Flag .isInstanceMemberParameter) ;
838838 _flags = _flags.update (_Flag .isVirtual, isVirtual);
839839 }
840840
@@ -1223,12 +1223,12 @@ class DynamicCallSiteTypeInformation<T extends ir.Node>
12231223 }
12241224
12251225 void invalidateTargetsIncludeComplexNoSuchMethod () {
1226- _flags -= _Flag .hasTargetsIncludeComplexNoSuchMethod;
1226+ _flags = _flags. remove ( _Flag .hasTargetsIncludeComplexNoSuchMethod) ;
12271227 }
12281228
12291229 bool targetsIncludeComplexNoSuchMethod (InferrerEngine inferrer) {
12301230 if (! _hasTargetsIncludeComplexNoSuchMethod) {
1231- _flags += _Flag .hasTargetsIncludeComplexNoSuchMethod;
1231+ _flags = _flags. add ( _Flag .hasTargetsIncludeComplexNoSuchMethod) ;
12321232 final value = targets.any ((target) => inferrer.memberHierarchyBuilder
12331233 .anyTargetMember (target, (MemberEntity e) {
12341234 return e.isFunction &&
@@ -1572,7 +1572,7 @@ class ClosureCallSiteTypeInformation extends CallSiteTypeInformation {
15721572/// type.
15731573class ConcreteTypeInformation extends TypeInformation {
15741574 ConcreteTypeInformation (super .type) : super .untracked () {
1575- _flags += _Flag .isStable;
1575+ _flags = _flags. add ( _Flag .isStable) ;
15761576 }
15771577
15781578 @override
0 commit comments