I have outlining working based on a Statement class derived from AstNodeBase.
I would like the statement to display the first keyword that identifies its type when the node is collapsed.
So:
-Argle bargle;
Would show:
+Argle[...]
Instead of:
+[...]
Is this the intended purpose of DisplayText ?
Following the QuickStart example, I have added this to the Statement:However nothing changes and indeed the getter is never called.
Previously I faked this by making the AST node start at the end of the first token. Now though I need the AST node to correctly reflect the whole statement. Also I would prefer the hover text to include the whole statement including the first keyword.
What am I missing ?
I would like the statement to display the first keyword that identifies its type when the node is collapsed.
So:
-Argle bargle;
Would show:
+Argle[...]
Instead of:
+[...]
Is this the intended purpose of DisplayText ?
Following the QuickStart example, I have added this to the Statement:
public override string DisplayText
{
get
{
return "Test";
}
}
Previously I faked this by making the AST node start at the end of the first token. Now though I need the AST node to correctly reflect the whole statement. Also I would prefer the hover text to include the whole statement including the first keyword.
What am I missing ?