Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:8e80217e59
[formerly3360eb6c5f
] Former-commit-id:377dcd10b9
3 lines
592 B
Text
3 lines
592 B
Text
Phrase consolidation uses the "splitPhrase" method which is given a tree, phrase, and list of elements to "split off". In this example, we end up with the original wind_withGusts_phrase in which WindGust has been diabled. The "getStatDict" method examines the list of disabled elements and removes them from the "statDict". We also spawn a new phrase for WindGust. The "gust_phrase" is given as the "phraseDef" in the elementInfo for WindGust. The new phrase is created as follows:
|
|
newPhrase = tree.addPhraseDef(phrase, elementInfo.phraseDef)
|
|
|