-
Notifications
You must be signed in to change notification settings - Fork 27k
feat(static-reflector): Added StaticReflector #7813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6a027d5 to
75f61d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give this a better return type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a map in dart. How do I specify, more specifically, what the map must contain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the special builtin {[key:KeyType]:ValueType} that will work in TS and be converted into a Map via ts2dart
75f61d4 to
4c7cfe8
Compare
Added a static reflector that uses metadta produced during build or, additionally, directly from typescript, to produce the metadata used by Angular code generation compiler.
4c7cfe8 to
2a5674b
Compare
|
Merging PR #7813 on behalf of @jeffbcross to branch presubmit-jeffbcross-pr-7813. |
|
Closed with 0dbf959 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This adds a static implementation of the
ReflectorReaderAPI that allows constructing metadata from the persistent format produced by theMetadataCollectorintools. This implementation can be passed toDirectiveResolver,PipeResolverandViewResolverwhich then can be passed toRuntimeMetadataResolverto produce theCompileDirectiveMetadataandCompilePipeMetadatanecessary to parse a template withTemplateParserwithout loading or running the corresponding modules.n/a
TemplateParsercan be used to compile a template without requiring the modules referenced being loaded. This is particularly helpful when the compiler needs to run in a more trusted environment than the template being compiled or when the template is for an incomplete type such as in an editor when using the parser for diagnostics and completions.No.
Added a static reflector that uses metadata produced during build
or, additionally, directly from typescript, to produce the metadata
used by Angular code generation compiler.