The latest build of this product (v22.1.3) was released 4 months ago, which was before this thread was created.
Posted 3 months 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 3 months 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

Add Comment

Please log in to a validated account to post comments.