-
-
Notifications
You must be signed in to change notification settings - Fork 4
Nested scope property #118
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestparserAnything related to Dialogue parser functionAnything related to Dialogue parser function
Milestone
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestparserAnything related to Dialogue parser functionAnything related to Dialogue parser function
Allow nested properties of a scope:
I think it can be done by utilizing
Object.get_indexed()andObject.set_indexed().Property manipulation:
Function call:
Parsing
On parse time, the property path need to be identified...
...and then turned into a
NodePath:Error handling
To see if a scope has the property path, check if
get_indexed()returnsnull:Compatibility
It works fine with a single-depth property, so it should be backward compatible.
Performance
I don't know the speed difference between
get_indexed()and justget(). But it should be negligible.If there's a considerable performance difference, we'll use
get()for non-nested property instead.Limitation
It works even for dictionaries, but not array.