Posted 20 years ago
by NSXDavid
![Avatar](https://secure.gravatar.com/avatar/e54b7af50717acc5a97fd83cf2b1cb00.jpg?s=64&d=identicon&r=g)
Let's say I have my language definition file setup to identify function names in a given language. What's the intended way to keep a list of all function identifiers up to date? I suppose I could scan the token list, but as a particular file gets big this would get slower and slower. Ideally I'd like to just look at the tokens of a modified portion of the code, right? And of course the initial run.
I get the impression it has something to do with the DocumentModification class... and maybe the LexicalParseOffsetRange property. The DeletedText and InsertedText kind of give me what I want, but it's not lexically parsed to identify adds or deletes of function identifiers.
I guess I'm missing something?
-- David
I get the impression it has something to do with the DocumentModification class... and maybe the LexicalParseOffsetRange property. The DeletedText and InsertedText kind of give me what I want, but it's not lexically parsed to identify adds or deletes of function identifiers.
I guess I'm missing something?
-- David