Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] checking references to external sources

Hi Alex,

I would like to write UndefinedVariableCheck / UndefinedTypeCheck as IBuildParticipantExtensions. For this Purpose I need to walk AST and search for variable/type references to check if they have been already defined. But I can't find a way to get the AST.

Can I get AST-root from BuildParticipant?

Kind regards,

Martin


Alex Panchenko wrote:
Hi Martin,

If you would like to perform some semantic checking and problem reporting then IBuildParticipantExtension is one of the possible ways to proceed.

SourceElementRequestVisitor is used for other purposes - it helps to build logical model of the source module, i.e. identify classes & methods.

Regards,
Alex

----- Original Message -----
From: "Martin Toepfer" <sec@xxxxxxxxxxxxxxxxxxx>
To: dltk-dev@xxxxxxxxxxx
Sent: Tuesday, January 13, 2009 6:35:02 PM GMT +06:00 Almaty, Novosibirsk
Subject: [Dltk-dev] checking references to external sources

Hi,

we are creating a developing environment for a language where references
to external sources have to be checked. We are wondering where the best
place for implementation is.
Should we
+ extend IBuildParticipantExtension like
org.eclipse.dltk.tcl.internal.validators.packages.PackageRequireChecker
in the org.eclipse.dltk.tcl.validators plugin
+ or extend SourceElementRequestVisitor like
PythonSourceElementRequestor in Python?

Regards,
Martin
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev




Back to the top