Providing external semantic data to a language using data binding

SyntaxEditor for WPF Forum

Posted 10 years ago by Scott Haney
Version: 14.2.0610


I have objects that contains useful semantic information (e.g. property names, function definitions). I would like to have access to these objects during parsing, for instance. The easiest way to gain access to one of these objects is via data binding to the syntax editor. I understand I want to treat the syntax languages as singletons, so I looked at IEditorDocument.LanguageData. However, I don't see how to access this by the parser and other services. Can you fill in the picture for me or point me in the correct direction?


Scott Haney

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Scott,

The IParser.Parse method is passed an IParseRequest.  If the request came from a document, it will have a Snapshot property available.  You can get the Document off of the Snapshot.  Then you can cast the document to an IEditorDocument and get to the LanguageData that way.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.