00bf636afa
Currently we only check getters for property access expressions. This is wrong because property access expressions do not always cause the "getter" to be triggered. e.g. ```ts set a() {...} get a() {...} ngOnInit() { this.a = true; } ``` In that case the schematic currently incorrectly checks the "getter", while this is a binary expression and the property access is used as left-side of the binary expression. In that case we need to check the setter declaration of the property and not the "getter". In order to fix this, we need to also check `ts.BinaryExpression` nodes and check getters/setters based on the used operator token. There are three types of binary expressions: 1) Value assignment (using `=`). In that case only the setter is triggered. 2) Compound assignment (e.g. using `+=`). In that case `getter` and `setter` are triggered. 3) Comparison (e.g. using `===`). In that case only the getter is triggered. PR Close #29663 |
||
---|---|---|
.buildkite | ||
.circleci | ||
.codefresh | ||
.github | ||
.vscode | ||
aio | ||
docs | ||
integration | ||
modules | ||
packages | ||
scripts | ||
third_party | ||
tools | ||
.bazelignore | ||
.bazelrc | ||
.clang-format | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
.nvmrc | ||
BUILD.bazel | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
WORKSPACE | ||
browser-providers.conf.js | ||
gulpfile.js | ||
karma-js.conf.js | ||
package.json | ||
protractor-perf.conf.js | ||
renovate.json | ||
shims_for_IE.js | ||
test-events.js | ||
test-main.js | ||
tslint.json | ||
yarn.lock | ||
yarn.lock.readme.md |
README.md
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.