Commit Graph

7 Commits

Author SHA1 Message Date
Doug Gregor
ee0a2d2184 Robustify the lookup of members within a metaclass ever so slightly,
by not allowing name lookup to return find struct or tuple members
(which make swift crash).


Swift SVN r1370
2012-04-10 23:34:27 +00:00
Doug Gregor
a3c34c5dbd Introduce an AST node (OverloadedMemberRefExpr) that represents dot
syntax when name lookup finds multiple candidates. Overload resolution
is then used to select the best candidate and map the overloaded
member reference expression down to DotSyntaxCallExpr or
DotSyntaxBaseIgnoredExpr, as appropriate.

This implements part of <rdar://problem/11071641>, so that simple
overload resolution works, but there is still a bit of cleanup to do.



Swift SVN r1366
2012-04-10 22:52:41 +00:00
Doug Gregor
c24d6ec8c4 Factor OverloadSetRefExpr into an abstract base class covering the
notion of a reference to a set of declarations. Introduce one derived
class, OverloadedDeclRefExpr, which covers the only case we currently
handle for overload resolution [*]: a direct (unqualified) reference
to an overloaded set of entities. Future subclasses should handle,
e.g., overloaded member references such as a.b or a.b.c.

[*] Ugly hacks for static methods notwithstanding


Swift SVN r1345
2012-04-09 17:16:11 +00:00
Chris Lattner
fbfb76a515 rename 'plus' methods to 'static' methods, resolving:
<rdar://problem/10718220> Need a better name than 'plus' for "static" functions



Swift SVN r1340
2012-04-06 17:50:43 +00:00
Doug Gregor
02b250c821 Actually create ImplicitThisTupleElementExpr expressions when we don't
have the location of the '.'. Prior to this,
ImplicitThisTupleElementExpr was completely unused.


Swift SVN r1300
2012-03-30 21:28:07 +00:00
Chris Lattner
388eb650aa move construction of ast for dot syntax out to NameLookup. No functionality change.
Swift SVN r1234
2012-03-19 06:01:09 +00:00
Chris Lattner
f986dbaf95 Add a new file to handle name lookup tasks, implement a bunch of
stuff that will eventually be centralized "dot" lookup mechanics.


Swift SVN r1227
2012-03-18 01:17:32 +00:00