Ben Langmuir
0e8978aaf0
[SourceKit] Annotate parameter noescape/autoclosure attributes
...
rdar://problem/25128165
2016-03-13 12:26:09 -07:00
Saleem Abdulrasool
4984c96caa
fix tests for FileCheck behaviour (DAG edition)
...
FileCheck does not support the combination negation. These tests were incorrect
and silently passing rather than checking what they intended.
2016-03-12 20:12:23 -08:00
Ted Kremenek
aec582b6db
Merge pull request #1647 from johnno1962a/master
...
New test for common SourceKit crash
2016-03-12 08:15:53 -08:00
John Holdsworth
b92f09fc12
Add of comment affected line offsets of test
2016-03-12 00:20:08 +00:00
Daniel Duan
7cabf3555b
[Parser] update test for SE-0040 changes
2016-03-11 16:01:37 -08:00
John Holdsworth
474f043c93
Make test self-contained using CHECK:
2016-03-11 23:47:42 +00:00
John Holdsworth
3a8a8e080e
New test for common SourceKit crash
2016-03-11 23:24:11 +00:00
Xi Ge
5168083bf3
ModulePrinting: Print new lines between members of a decl.
2016-03-11 12:26:04 -08:00
Ben Langmuir
819b5e7d3f
Merge pull request #1601 from compnerd/test-fixes
...
Fix tests for FileCheck behaviour
2016-03-10 15:36:19 -08:00
Saleem Abdulrasool
0b0ea6f984
fix tests for FileCheck behaviour
...
FileCheck does not support the combination negation. These tests were incorrect
and silently passing rather than checking what they intended.
2016-03-09 16:44:33 -08:00
Max Moiseev
02006f20bc
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-09 16:05:03 -08:00
Ben Langmuir
6581eba8e6
[CodeCompletion] Improve ordering of prefix matches vs popular names
...
In the experimental code-completion path.
rdar://problem/24843463
2016-03-09 11:23:06 -08:00
Chris Lattner
ae919bd447
implement mangling support for typealias archetypes, allowing them to get basic USRs.
2016-03-08 21:18:39 -08:00
Xi Ge
ce12c6dc95
ModulePrinting: Add an option to synthesize unconditional extensions; true by default.
2016-03-08 18:34:38 -08:00
Ben Langmuir
bac7521af7
[SourceKit] Fix crash with cursor info on generic typealias
...
For now, just skip mangling the name since we know the decl context will
crash the mangler.
2016-03-08 18:03:42 -08:00
Max Moiseev
1fae0d1325
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-08 12:48:48 -08:00
Ben Langmuir
393550ee58
[SourceKit] Add a couple of missing tests for cursor info
2016-03-07 13:22:42 -08:00
Ben Langmuir
e752de0d20
[SourceKit] Print and annotate the raw value expression of enum elements
...
For now, only do this in SourceKit (printQuickHelpDeclaration), but
there are probably other printing modes that should do this.
rdar://problem/24292226
2016-03-07 12:36:47 -08:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
Ben Langmuir
bd2f100868
[SourceKit] Add keyword tags to a couple of places I missed in TypeRepr printing
2016-03-07 10:37:03 -08:00
Ben Langmuir
d08bf6829e
[SourceKit] Add some tuple tests missed in previous commit NFC
2016-03-07 10:24:16 -08:00
Ben Langmuir
3d424b5e96
[SourceKit] Annotate tuple types and nested function types
...
Move the type callbacks into the respective type/typerepr printers so
taht we get these callbacks even when we print the type directly, or in
a nested fashion. Also make the returntype more explicit than just
"inside a function type", since visiting the function type currently
visits the input argument tuple (which is different than e.g. the
function *decl* printing, which walks the parameter list explicitly).
rdar://problem/24292226
2016-03-07 10:13:01 -08:00
Ben Langmuir
1ea2d46a04
[SourceKit] Add builtin attribute tags
...
As promised, tag the whole attribute include all of its 'parameters'.
rdar://problem/24292226
2016-03-03 21:20:14 -08:00
Ben Langmuir
9e3fc1ce74
Remove dead FIXME in cursor info test
2016-03-03 18:40:23 -08:00
Ben Langmuir
ba702b846f
[SourceKit] Add tags for attribute names
...
As a first foray into annotating attribute, add tags around attribute
names. For now, treat any decl-modifiers as keywords. We will also want
to wrap the whole attribute (including any parameters) into tags as
well, but that will require more work in the callback hanlding.
Also factor the attribute printing to handle any special cases early,
which will simplify wrapping attributes in tags, since we can then just
put the whole switch intside the pre/post callbacks.
rdar://problem/24292226
2016-03-03 18:39:21 -08:00
Ben Langmuir
65f0e7eb94
[SourceKit] Add annotation tags for generic type requirements
...
Each requirement gets tagged. We could also tag the whole where clause
if we need to, but so far it hasn't been interesting.
rdar://problem/24292226
2016-03-03 16:11:07 -08:00
Ben Langmuir
ceb1069199
Prefer original spelling of 'static' vs. 'class'
...
Try to match the original spelling of static/class in diagnostics and
when printing the AST. Also fixes cases with
PrintOptions.PrintImplicitAttrs = false, where we would just print
'class', which was not valid code.
2016-03-03 13:48:30 -08:00
Ben Langmuir
c934315315
[SourceKit] Update terminology in generic parameter tag names
...
And add a test that does cursor info on the generic parameter itself,
not just on the parent decl context.
rdar://problem/24292226
2016-03-03 13:34:16 -08:00
Max Moiseev
cf4bafe9e3
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-03 13:22:03 -08:00
Ben Langmuir
1182e41e01
[SourceKit] Add tags for generic parameters to annotated decl
...
Like typerefs, we want to show the USR in the tag.
rdar://problem/24292226
2016-03-03 12:47:09 -08:00
Ben Langmuir
8f9299cc97
[CodeCompletion] Add assignment to experimental operator completion
...
When the LHS is an lvalue/assignable tuple and there is no leading
sequence of binary expressions.
It's a bit hacky right now since we don't have a good way to
differentiate general pattern completions from builtin operators.
rdar://problem/23209683
2016-03-02 18:21:37 -08:00
Ben Langmuir
d88d5052aa
[SourceKit] Use keyword name context to add syntaxtype.keyword tags
...
We can now markup most keyword uses. Still missing access control
keywords.
rdar://problem/24292226
2016-03-02 18:20:59 -08:00
Xi Ge
65a3aade7e
[SourceKit] Cursor info: for extension decls, the cursor info query always returns the extended nominal's group name.
2016-03-02 17:30:11 -08:00
Xi Ge
8f1c239d01
[SourceKit] Cursor info: remove type interface since no clients are using it. rdar://24920331
2016-03-02 12:28:02 -08:00
Ben Langmuir
ba2710e493
[CodeCompletion] Fix the mysteriously missing operators
...
In the experimental operator completion, we were mysteriously missing
some operators like ||. It turns out it was all operators
alphabetically after '.', because the filtering code was very broken.
rdar://problem/23539465
2016-03-01 18:23:00 -08:00
Ben Langmuir
8955cdc644
[SourceKit] Add decl.var.type tags in property declarations
...
These Type::print can just reuse the printTypeLoc logic even if they
don't have a TypeRepr.
rdar://problem/24292226
2016-03-01 16:49:33 -08:00
Ben Langmuir
b4469d88dc
[SourceKit] Replace decl.name with syntaxtype.keyword as appropriate
...
We aren't ready to start marking up all keywords yet, but start by
replacing the cases where we currently have decl.name.
rdar://problem/24292226
2016-03-01 15:35:26 -08:00
Ben Langmuir
10c8250352
[SourceKit] Rename local/external to name/argument_label in annotation
...
rdar://problem/24292226
2016-03-01 15:16:40 -08:00
Max Moiseev
71384c7322
Removing unnecessary test command
2016-02-29 12:13:56 -08:00
Max Moiseev
a49dab6bf8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-29 12:08:52 -08:00
Xi Ge
f195adba80
Module group: suggested by @gribozavr, move ExistentialCollection.swift to collection/type-erased group.
2016-02-27 21:14:38 -08:00
Ben Langmuir
dbd32f31b9
[SourceKit] Add cursor/doc info for enum elements
...
Similarly to pattern binding decls, we want to be able to explode a case
decl out into a synthesized enum case for each individual enum element.
2016-02-26 16:28:13 -08:00
Dmitri Gribenko
ceaaed5991
Merge pull request #1459 from dduan/SE-0031-stdlib
...
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 13:31:47 -08:00
Xi Ge
a91cc97058
[SourceKit] Indentation: aligning parameters when argument names are present. rdar://24862107
...
Fix is in AST by removing unnecessary override.
Originally reported by: https://twitter.com/JohnRHeaton/status/702526804138074112
2016-02-26 12:09:24 -08:00
Daniel Duan
2bc78b8c09
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 12:02:29 -08:00
Chris Lattner
f43b76bcc2
Rearrange test to avoid having a hard coded filepath in the response.
2016-02-26 11:30:47 -08:00
Dmitri Gribenko
a257715fcc
Revert "[stdlib] [SE-0031] update stdlib for SE-0031 (inout adjustment)"
2016-02-26 11:17:10 -08:00
Daniel Duan
13b5c8f3bc
[SE-0031] update code base for SE-0031 (inout adjustment)
2016-02-26 10:52:10 -08:00
Chris Lattner
dfaaebc0a0
Merge pull request #1333 from dduan/SE-0031
...
[SE-0031] Adjusting 'inout' Declarations for Type Decoration
2016-02-26 10:41:58 -08:00
Daniel Duan
780b58a9a5
[Parser] update tests for 'inout' syntax adjustment
2016-02-26 01:33:22 -08:00