Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Fwd: Getting the AST of the cursor position

Hi,
I want to add the following functionality to eclipse jump to the previous curly braces [see https://bugs.eclipse.org/243015 ].
In order to do that I need to get the AST (or partial AST) of the current cursor position, or use CHeuristicScanner, and scan back until I'll get a '{'.
1) How can I get the AST node in the current cursor position?
2) What's the better approach CHeuristicScanner or AST?
Thanks!


Back to the top