[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] null bindings
|
A null bindings should never be the result of a resolution problem. If
there is a problem, the name resolution has to create a ProblemBinding.
However, if the name is not subject to name resolution (e.g.: include
file name and maybe some dummy nodes??) null may be returned.
==> I agree that a null binding should not be counted as a problem.
Markus.
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mike Kucera
> Sent: Friday, April 04, 2008 7:28 PM
> To: CDT General developers list.
> Cc: CDT General developers list.; cdt-dev-bounces@xxxxxxxxxxx
> Subject: RE: [cdt-dev] null bindings
> Importance: Low
>
> So what I'm hearing is that null bindings can be the result
> of resolution problems. That's fine I just wanted to know for sure.
>
> But I'm still not sure that null bindings that are the result
> of dummy name nodes should be counted as problems during
> ambiguity resolution. Maybe the best thing to do is to just
> add a check for dummy nodes and not call
> resolveBinding() on them.
>
> In any case I'll keep experimenting with this in the LR
> parser plugin for now.
>
> Thanks for the help.
>
> Mike Kucera
> Software Developer
> IBM CDT Team, Toronto
> mkucera@xxxxxxxxxx
>
>
>
>
>
> "Schorn, Markus"
>
> <Markus.Schorn@wi
>
> ndriver.com>
> To
> Sent by: "CDT General
> developers list."
> cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
>
> clipse.org
> cc
>
>
>
> Subject
> 04/04/2008 04:57 RE: [cdt-dev] null
> bindings
> AM
>
>
>
>
>
> Please respond to
>
> "CDT General
>
> developers list."
>
> <cdt-dev@eclipse.
>
> org>
>
>
>
>
>
>
>
>
>
> As a minimum, some of the preprocessor nodes (e.g. the name
> of an include statement) do not resolve to any binding, they
> return null.
> Markus.
>
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mike Kucera
> > Sent: Thursday, April 03, 2008 10:38 PM
> > To: cdt-dev@xxxxxxxxxxx
> > Subject: [cdt-dev] null bindings
> > Importance: Low
> >
> >
> > Question for the experts....
> >
> > When exactly does IASTName.resloveBinding() return null?
> From what I
> > can tell it returns a ProblemBinding for all names that can't be
> > resolved, and only returns null for empty name nodes, that is dummy
> > name nodes created by the parser that don't actually
> correspond to an
> > identifier in the source.
> > Is this correct?
> >
> > I'm asking because I've been experimenting with adding a
> new type of
> > ambiguity node, an ambiguous declarator. The ambiguity
> resolution code
> > in CPPASTAmbiguity counts both ProblemBindings and null bindings as
> > problems.
> > But it seems to me that null bindings aren't really
> problems if they
> > are just the result of dummy name nodes, and therefore shouldn't be
> > counted. Am I missing something here?
> >
> > Thanks.
> >
> >
> > Mike Kucera
> > Software Developer
> > IBM CDT Team, Toronto
> > mkucera@xxxxxxxxxx
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>