| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS fileSad build is saying you need to sort this. (Search for the "Sort Members" command in the IDE.)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// TODO(rnystrom): How can this ever be false?Good question. It probably can't be. The usual answer to a question like this is "invalid code", but I can't think of any way for invalid code to produce this situation. I would expect that if the name after `this` isn't defined in the current class that the analyzer would set the `field` to `null`.
If removing the test doesn't cause any tests to fail, then I think it's safe to assume that it isn't needed (though Konstantin might know of a path I'm not thinking of).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS fileSad build is saying you need to sort this. (Search for the "Sort Members" command in the IDE.)
Done
// TODO(rnystrom): How can this ever be false?Good question. It probably can't be. The usual answer to a question like this is "invalid code", but I can't think of any way for invalid code to produce this situation. I would expect that if the name after `this` isn't defined in the current class that the analyzer would set the `field` to `null`.
If removing the test doesn't cause any tests to fail, then I think it's safe to assume that it isn't needed (though Konstantin might know of a path I'm not thinking of).
It turns out there is one test that fails if I comment this out. But it's only the test that the lint shouldn't fire if the assigned-to "field" is actually a setter. For that test, it's only the `field.isOriginDeclaration` part that matters. The other `enclosingElement` stuff doesn't seem to come into play.
I updated the comment and removed that unused half of the conditional.
| 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. |