[DAS] Fixes rename local variable for function expression cases
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return _searchReferences_Local(element, (n) => n is Block, searchedFiles);Maybe we are missing it here too?
n is Block ||And here? Does anyone know a test case for these?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
return _searchReferences_Local(element, (n) => n is Block, searchedFiles);Maybe we are missing it here too?
Hmm is this something we could do with a self-executing closure?
```
int foo() => (){
int bar() => 7;
return b^ar();
}();
```
n is Block ||And here? Does anyone know a test case for these?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return _searchReferences_Local(element, (n) => n is Block, searchedFiles);Samuel RawlinsMaybe we are missing it here too?
Hmm is this something we could do with a self-executing closure?
```
int foo() => (){
int bar() => 7;
return b^ar();
}();
```
Well, I i'm guessing we can't do it today. We can't have something like:
```dart
int foo() => (other() {return 0;})();
// ^ named_function_expression
```
And the case you provided contains a block around it (tested manually and it works). So I'm closing both comments since I don't think we can have a similar case for other members except pattern variables.
n is Block ||Samuel RawlinsAnd here? Does anyone know a test case for these?
Same self-executing closure trick?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Future<void> test_createChange_forElement_functionExpression() async {`expressionFunctionBody`
Because `functionExpression` is something else.
We already have `test_createChange_patternVariable_ifCase_patternField_implicitName`. And it looks to me that we test something very related. So, it would be better to put them close by.
node is ExpressionFunctionBody,Please review `test_searchReferences_VariablePatternElement_*` tests and add necessary test(s).
Iterable<MapEntry<K, V>> get entries;Move it to other getters.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Future<void> test_createChange_forElement_functionExpression() async {`expressionFunctionBody`
Because `functionExpression` is something else.
We already have `test_createChange_patternVariable_ifCase_patternField_implicitName`. And it looks to me that we test something very related. So, it would be better to put them close by.
Oh yes, thanks!
node is ExpressionFunctionBody,Please review `test_searchReferences_VariablePatternElement_*` tests and add necessary test(s).
Done
Iterable<MapEntry<K, V>> get entries;Move it to other getters.
Done. May I ask why do we use this instead of the actual SDK for these tests specifically?
| 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. |
| Auto-Submit | +1 |
Since @sche...@google.com is busy with `Fine`, I'm moving him to CC and replacing the reviewer with @paul...@google.com. If you disagree with this, please feel free to assign anyone you prefer.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
lgtm, thank you!
I've rebased using the Gerrit CLI to avoid losing the reviews. Can you try and restart that failing bot please? Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Felipe Morschellgtm, thank you!
I've rebased using the Gerrit CLI to avoid losing the reviews. Can you try and restart that failing bot please? Thanks!
Gerrit UI**
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Can either of you land this, please? Thanks a lot! I've rebased after the g3 failure.
| 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. |
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[DAS] Fixes rename local variable for function expression cases
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |