Posted 2 years ago by Gavin Huet
Version: 22.1.3
Avatar

Hi,

Is there a way to identify #Region areas in the AST Parser?

We add various bits of code to our footer and want to identify their origin, if we just use a comment we have to rely on our own parsing to identify the block that we inserted.

Many thanks

Gavin

Comments (1)

Answer - Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Gavin,

Yes, the IDotNetParseData that gets set to the document's ParseData property after a parse completes has a PreprocessorDirectives collection that you can examine for regions.

Note that regions aren't in the AST itself since they might overlap different portions of the tree, which could cause issues trying to fit them into the tree structure.


Actipro Software Support

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.