diff options
author | 2017-08-30 00:23:40 +0200 | |
---|---|---|
committer | 2017-08-30 13:48:32 +0200 | |
commit | 00443495e002c9fc68adbcb708f223eb4b6a73c1 (patch) | |
tree | ec4484fc46793ec9b671a902c42e143a3df79c91 /src/main/java/com/google/devtools/build/lib/rules/AliasConfiguredTarget.java | |
parent | ef1424cb39a4ff77bc6579821bbc24eea70e32a3 (diff) |
Move default value & converter finding logic to the OptionDefinition class.
Removes some duplicate computation by memoizing the results. Consolidates caching into a single optionDefinition object, instead of having multiple caches that go from the option name to different parts of what defines an option.
Fly-by cleanup of OptionDescription's contents, all contents that are statically defined as part of an option are in OptionDefintion, while expansion data, which depends on the existence of other options, is more clearly stored separately.
Will move the converter-to-option type matching sanity checks to a compile time check in a later change.
RELNOTES: None.
PiperOrigin-RevId: 166912716
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/AliasConfiguredTarget.java')
0 files changed, 0 insertions, 0 deletions