full matched source of a ParseTreeNode

Aug 3, 2014 at 7:00 PM
This node is a subtree that holds multiple identifiers. All the things I'd expect to give me the full match only show the first identifier. I'm getting the job done right now with the slightly homely
var matchedSource = source.Substring(node.Span.Location.Position, node.Span.Length);
Am I missing something?
Coordinator
Aug 4, 2014 at 8:46 AM
don't quite understand your problem, or what surprises you. your node holds a list of identifiers in Child nodes list. To get the full source for a node, you use the expr for matcheSource - yes, it's correct... The node itself never holds full underlying source as a string - that would be quite a waste of memory.
Aug 4, 2014 at 12:02 PM
No large problem, I just wanted to know I wasn't reinventing some helper code that already existed to mediate between the source and the parse tree. Thanks!