Graydon Hoare
3a79d83233
Forward declare TypeRepr in TypeLoc.h, adjust other code to compensate.
2017-04-18 11:12:53 -07:00
Maxwell Swadling
9edb93693b
Updated the tests for when the AssignExpr's EqualLoc is invalid
2017-01-26 12:31:37 +11:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Brian Gesiak
4108e1d9af
[Sema] Mark VarDecl in capture lists
...
Fixes SR-2757.
Variables in capture lists are treated as 'let' constants, which can
result in misleading, incorrect diagnostics. Mark them as such in order
to produce better diagnostics, by adding an extra parameter to the
VarDecl initializer.
Alternatively, these variables could be marked as implicit, but that
results in other diagnostic problems: capture list variables that are
never used produce warnings, but these warnings aren't normally emitted for
implicit variables. Other assertions in the compiler also misfire when
these variables are treated as implicit.
Another alternative would be to walk up the AST and determine whether
the `VarDecl`, but there doesn't appear to be a way to do so.
2017-01-01 12:41:06 -05:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Mishal Shah
f08601f550
Merge pull request #5321 from mxswd/tuple-expr-sourcerange
...
Updated TupleExpr's getSourceRange to inspect child elements source ranges
2016-10-18 16:16:58 -07:00
Maxwell Swadling
7f1f3b5aa2
fixed typo
2016-10-17 20:36:45 -07:00
Maxwell Swadling
3c7a17e261
Fixed a bug in AssignExpr that caused it to create invalid source ranges
2016-10-16 17:41:28 -07:00
Maxwell Swadling
5999021878
Fixed a bug in StmtConditionElement::getSourceRange where it would create invalid source ranges
...
This bug was causing an assert.
2016-10-16 16:34:59 -07:00
Maxwell Swadling
91e3c67493
Updated TupleExpr's getSourceRange to inspect child elements source ranges
2016-10-16 13:30:43 -07:00
Maxwell Swadling
dbeec26ac6
Added test for when the 2nd element of a tuple expr has an invalid source range
...
Also cleaned up the variable names
2016-10-12 09:55:20 -07:00
Maxwell Swadling
339e40fb02
Fixed an assert caused when a TupleExpr that didn't have a valid SourceRange had a valid SourceLoc for the first element but not for the last
2016-10-08 23:31:01 -07:00
Jordan Rose
4ec661d9b7
Fix the SourceRange of an AssignExpr with an implicit source.
...
Fixed by Maxwell Swadling, unit test by me.
2016-09-14 19:55:08 -07:00
Jordan Rose
2fdd456d91
[unittests] Factor out TestContext helper for AST tests.
...
This is used to set up a very simple AST context so that AST nodes
can be allocated as usual.
No functionality change.
2016-09-14 18:22:19 -07:00
Doug Gregor
211c580158
[Cleanup] Eliminate DerivedFileUnit.
...
The only client of DerivedFileUnit was synthesized global '=='
operators for Equatable conformances, which has since been removed.
2016-07-21 12:54:27 -07:00
Jordan Rose
996ee1ec53
Add an override-checking mode that allows mismatched optionals.
...
Not yet plugged into any actual features.
2016-04-15 17:18:10 -07:00
practicalswift
945c3cbcee
[gardening] Fix recently introduced typo: "anothor" → "another"
2016-04-15 20:06:54 +02:00
Jordan Rose
fadf6b3c9f
[unittest] Add some basic tests for TypeBase::canOverride.
...
Also, move the version lattice tests under a general "AST" test bundle.
2016-04-14 16:00:46 -07:00