local tokens support precedence #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "localTokenPrecedence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR makes
@local tokenssupport@precedence.It's mostly a copy/paste of existing code from
buildTokenGroups. Do you want to refactor/extract the common logic? I didn't do it because I'm pretty unfamiliar with the code. I can refactor it if you like the overall idea; I'll probably create 2 methods onTokenSet:validate, andbuildTokenGroup, which correspond to the 2 copy/paste blocks below.@ -1759,0 +1823,4 @@}// state.tokenGroup = tokenGroup.groupID}A literal copy-paste from
buildTokenGroups.Also (mostly) a copy-paste from
buildTokenGroups. However, I don't know if the commented-out code on Line1824 is necessary. Uncommenting it causes tests to fail, but I'm not sure about its semantics soooo... leaving it in to highlight the fact that I removed it.Given that local tokens already support
@precedence, and your tests case passes with the current code, I'm rather confused what it is you are trying to do here.Ulgh my apologies. I was using this playground which was using an old version of
generator. I then started implementing without going through theredof TDD.Pull request closed