| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
internalPositionalParameters.cast();I'm a bit worried about the runtime overhead of this.
PositionalParameter? internalException;Shouldn't we have a `CatchParameter` for this and `stackTrace` ?
required Expression? defaultValue,
bool isCovariantByDeclaration = false,
bool isRequired = false,
bool isInitializingFormal = false,
bool isSuperInitializingFormal = false,
bool isFinal = false,
bool hasDeclaredDefaultType = false,
bool isLowered = false,
bool isSynthesized = false,
bool isWildcard = false,
}) : super(Couldn't these be super parameters?
required Expression? defaultValue,
bool isCovariantByDeclaration = false,
bool isRequired = false,
bool isInitializingFormal = false,
bool isSuperInitializingFormal = false,
bool isFinal = false,
bool hasDeclaredDefaultType = false,
bool isLowered = false,
bool isSynthesized = false,
bool isWildcard = false})
: super(Ditto
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
internalPositionalParameters.cast();I'm a bit worried about the runtime overhead of this.
Maybe `PositionalParameter` can just implement `VariableDeclaration` interface (for now), so this cast won't be needed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Thank you for taking a look and for the suggestions, Johnni and Alex! I've updated the CL accordingly, and it seems to remove the most of the overhead. PTAL.
Alexander MarkovI'm a bit worried about the runtime overhead of this.
Maybe `PositionalParameter` can just implement `VariableDeclaration` interface (for now), so this cast won't be needed.
Thanks for the suggestion, Alex! Making `FunctionParameter` implement `VariableDeclaration` solved the issue, even though it goes against the design. It works as a workaround until we commit to the new model and can reverse the implementation relation.
internalNamedParameters.cast();Chloe StefantsovaDitto.
Done
Shouldn't we have a `CatchParameter` for this and `stackTrace` ?
Now that `FunctionParameter` implements `VariableDeclaration`, this change is not needed. But I like the idea of a `CatchParameter`.
required Expression? defaultValue,
bool isCovariantByDeclaration = false,
bool isRequired = false,
bool isInitializingFormal = false,
bool isSuperInitializingFormal = false,
bool isFinal = false,
bool hasDeclaredDefaultType = false,
bool isLowered = false,
bool isSynthesized = false,
bool isWildcard = false,
}) : super(Couldn't these be super parameters?
Done
required Expression? defaultValue,
bool isCovariantByDeclaration = false,
bool isRequired = false,
bool isInitializingFormal = false,
bool isSuperInitializingFormal = false,
bool isFinal = false,
bool hasDeclaredDefaultType = false,
bool isLowered = false,
bool isSynthesized = false,
bool isWildcard = false})
: super(| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// Coverage-ignore(suite): Not run.
void reportError(Looks like you have a verifier error.
static DartType _getTypeOfVariable(ExpressionVariable node) => node.type;Should this change be delayed until we more to the new model?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Thanks for another review, Johnni. I've applied your suggestions.
Johnni, Alex, PTAL.
// Coverage-ignore(suite): Not run.
void reportError(Looks like you have a verifier error.
Thanks for spotting this! Fixed.
This should be "inferring".
Done
static DartType _getTypeOfVariable(ExpressionVariable node) => node.type;Should this change be delayed until we more to the new model?
I've reverted the change in this line and other similar places elsewhere in the CL, so we don't get the increased polymorphism until we need it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |