Posted 16 years ago by Martin de Jong - Statistics Netherlands
Avatar
My editor doesnt display any collapsable nodes.
After the parse i fill the Compilation Unit with Astnodes.
The syntax editor correctly parses the data and shows the errors. But still no nodes to see.

i have to call some kind of update to get collapsing nodes in the editor?

[Modified at 10/02/2008 09:05 AM]

Comments (4)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Which language is this for, a custom language that you made?

If this is a custom language and you want to use the AST model for outlining, look at the SimpleSyntaxLanguage.PerformAutomaticOutlining method in the sample project. That shows how to use the AST tree to generate outlining nodes. Also note that the AST nodes that will be outlining nodes must implement ICollapsibleNode (like the Simple language's FunctionDeclaration does).


Actipro Software Support

Posted 16 years ago by Martin de Jong - Statistics Netherlands
Avatar
Indeed, a custom language. I implemented/copied the PerformAutomaticOutlining method but its never called.

My compilationUnit implements My AstNode, ICompilationUnit
My AStnode contains an implementation of ICollapsibleNode , none is called

My SemanticParser doesnt implement IRecursiveDescentLexicalParser. Should it?
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
First let me ask, do you have Document.Outlining.Mode set to Automatic?


Actipro Software Support

Posted 16 years ago by Martin de Jong - Statistics Netherlands
Avatar
Sorry people, somehow Outline mode was not set:( Stupid me. At least it already shows the little squares, now i have to fix the offsets:)
The latest build of this product (v24.1.0) 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.