-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have invocation builders coerce values to SoyValues directly when pos…
…sible, rather than always going through the generic SoyValueConverter api For simple well typed parameters, this should be more performant. For complex parameters, this should be more accurate. Consider list<map<string,string>> the current approach converts the inner map<> to a DictImpl with an unknown runtime type, the new approach marks it as a SoyMapImpl. In well typed code there is no difference, but if the map value wonders into untyped code it might get inferred to be a legacy_object_map. This also allows us to support list<css> and list<attributes> GITHUB_BREAKING_CHANGES=none ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=302062291
- Loading branch information
1 parent
70cc87f
commit b67abee
Showing
14 changed files
with
461 additions
and
478 deletions.
There are no files selected for viewing
293 changes: 198 additions & 95 deletions
293
java/src/com/google/template/soy/data/BaseSoyTemplateImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
144 changes: 0 additions & 144 deletions
144
java/src/com/google/template/soy/invocationbuilders/javatypes/JavaNumberSubtype.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.