Commit Graph

9 Commits

Author SHA1 Message Date
Ben Barham
76e2c7bbb4 [Index] Do not generate pseudo accessors for parameters
Parameters cannot be computed variables, so don't generate pseudo
accessors for them.

Resolves rdar://84227937
2021-10-14 11:46:39 +10:00
Slava Pestov
fa4f7dd664 Parse: Don't create PatternBindingDecls with overlapping source ranges
This was happening in the error recovery path when parsing accessors
on a pattern binding declaration that does not bind any variables, eg

let _: Int { 0 }
2020-09-22 00:16:54 -04:00
Pavel Yaskevich
1315207a22 [Diagnostics] Introduce extraneous call fix
Detect and diagnose attempts to call variables and/or properties
which don't have a function type, so can't really support
invocation.
2019-10-30 16:53:42 -07:00
Nathan Hawes
d48b6204de [ASTMangler] Fix USR generation/mangling crash in invalid code
In invalid code a decl may end up with an opened archetype type that the
mangler doesn't expect. We still want to be able to generate a USR for these
decls so that we can index and rename their occurences successfully. To allow
this, this patch calls mapTypeOutOfContext on primary or opened archetype types
prior to mangling.

Resolves rdar://problem/54310026
2019-09-11 10:59:04 -07:00
Slava Pestov
a4cccaf46c ASTMangler: Fix mangling of invalid dependent member types
Fixes <rdar://problem/48014983>.
2019-02-13 19:17:27 -05:00
Nathan Hawes
660e9000c5 [IDE] Add test case for already fixed crash in SourceEntityWalker
Test case for rdar://problem/45039252 that was already fixed by
a8136a29ba
2018-10-08 14:57:17 -07:00
Argyrios Kyrtzidis
40a29b889d [test] Add a test case for fix of PR #18153 2018-07-27 12:49:06 -07:00
Argyrios Kyrtzidis
f7e897ec4a [AST] Make sure that if a TupleExpr is created with element names but not name locations, it is marked implicit as appropriate
Fixes a crash for SourceEntityWalker which assumed that a non-implicit TupleExpr has source locations for its name elements.

Fixes SR-6517, rdar://35830880
2018-01-11 12:57:03 -08:00
Argyrios Kyrtzidis
bf80cff4d0 [index] Fix assertion hit during USR generation, when encountering an erroneous computed var. 2017-02-14 10:19:04 -08:00