f8c70011b1
ngcc's reflection host needs to be able to determine all members of a class, which it does by using the `ts.Symbol` from TypeScript's TypeChecker. Such Symbol however may represent multiple class members in the case of accessors; an equally named getter/setter accessor pair is combined into a single `ts.Symbol`. This commit introduces logic to recognize such accessors in order for both the getter and setter to be considered as class member, similar to ngtsc's behavior when operating on original TypeScript code. One difference wrt the TypeScript host is that ngcc cannot see to which accessor originally had any decorators applied to them, as decorators are applied to the property descriptor in general, not a specific accessor. If an accessor has both a setter and getter, any decorators are only attached to the setter member. PR Close #28357 |
||
---|---|---|
.buildkite | ||
.circleci | ||
.github | ||
.vscode | ||
aio | ||
docs | ||
integration | ||
modules | ||
packages | ||
scripts | ||
third_party/github.com/bazelbuild/bazel-toolchains/bazelrc | ||
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 | ||
index.bzl | ||
karma-js.conf.js | ||
package.json | ||
protractor-e2e.conf.js | ||
protractor-examples-e2e.conf.js | ||
protractor-perf.conf.js | ||
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.