Argyrios Kyrtzidis
bb66d6dd1a
[IDE] Don't show '@transparent' in the module interface.
...
rdar://16804855
Swift SVN r17350
2014-05-04 01:24:55 +00:00
Argyrios Kyrtzidis
c0e69b8d4a
[Printer] In PrintOptions, add a general 'exclude attributes' list for the attribute kinds we don't want to print.
...
Swift SVN r17349
2014-05-04 01:24:52 +00:00
Ted Kremenek
4e70269c53
More renaming 'unchecked optional' to 'implicitly unwrapped optional'.
...
Swift SVN r17236
2014-05-02 06:22:01 +00:00
Ted Kremenek
050fd53af7
Rename UncheckedOptional to ImplicitlyUnwrappedOptional.
...
Swift SVN r17232
2014-05-02 06:13:57 +00:00
Argyrios Kyrtzidis
c1fd5b5a31
[IDE] For the module interface, add an option to not print parameter names.
...
rdar://16600455
Swift SVN r16275
2014-04-13 05:33:06 +00:00
Argyrios Kyrtzidis
293d771905
[IDE] Add an option to skip printing declarations that start with '_', for the module interface.
...
rdar://16559411
Swift SVN r16272
2014-04-13 04:35:30 +00:00
Argyrios Kyrtzidis
4c91bd074f
[IDE] Print out regular comments from the clang module headers, for the module interface.
...
rdar://16451119
Swift SVN r16249
2014-04-12 05:21:08 +00:00
Dmitri Hrybenko
3972e2b23a
Reimplement @unchecked suppression: print '@unchecked T?' as 'T?' instead of
...
plain 'T'
rdar://16530754
Swift SVN r16213
2014-04-11 11:02:45 +00:00
Dmitri Hrybenko
6f099be5cd
AST printer: add an option to disable printing function representation
...
attributes (@thin, @objc_block)
Swift SVN r16208
2014-04-11 10:03:07 +00:00
Dmitri Hrybenko
0fc4f3949c
AST printer: add an option to hide @exported
...
Swift SVN r16168
2014-04-10 19:39:25 +00:00
Dmitri Hrybenko
e68fd4abd3
AST printer: add an option to hide 'override' keywords
...
rdar://16530754
Swift SVN r16162
2014-04-10 14:27:00 +00:00
Dmitri Hrybenko
cc30070f68
AST printer: add an option to suppress @unchecked in imported declarations
...
This is rdar://16530754. For @unchecked in code completion see
rdar://16576739.
Swift SVN r16156
2014-04-10 10:40:30 +00:00
Doug Gregor
9e75a46c8c
swift-ide-test: Add a -skip-unavailable option to skip unavailable declarations
...
Swift SVN r16056
2014-04-08 16:34:44 +00:00
Dmitri Hrybenko
f198c28d75
Serialize @required as a DeclAttribute
...
Also introduce an invalid bit on a DeclAttribute for use by semantic analysis.
This fixes AST printing for @required.
Swift SVN r15938
2014-04-04 15:24:47 +00:00
Dmitri Hrybenko
78e354b2b9
AST printing: make PrintDefaultParameterPlaceholder the default (since we are
...
not going to implement expression printing any time soon), and fix a bug in its
implementation: when used with deserialized modules, "= default" was not
printed.
Swift SVN r15798
2014-04-02 13:56:54 +00:00
Argyrios Kyrtzidis
5bc01ea0a2
[IDE] Allow the caller of ide::printModuleInterface() to control whether documentation comments should be printed
...
Part of rdar://16450298
Swift SVN r15584
2014-03-28 18:51:47 +00:00
Dmitri Hrybenko
1d6c76c352
Module interface printing: pass through documentation comments for imported
...
declarations
rdar://16408910
Swift SVN r15576
2014-03-28 10:54:06 +00:00
Sonny Falk
275eb64dd6
Rename the option for default parameter placeholder to better reflect
...
the meaning, PrintDefaultParameterPlaceholder.
Swift SVN r15566
2014-03-27 21:26:42 +00:00
Sonny Falk
7f83777900
Add an option to print a placeholder for variable initializers.
...
This allows us to pretty print default function parameters as:
func foo(arg1: Int = default)
Swift SVN r15564
2014-03-27 20:53:58 +00:00
Dmitri Hrybenko
92b29ef045
Revert "Module interface printing: pass through documentation comments for
...
imported declarations"
rdar://16408910
Swift SVN r15527
2014-03-26 21:28:42 +00:00
Dmitri Hrybenko
30c6eeff16
Module interface printing: pass through documentation comments for imported
...
declarations
rdar://16408910
Swift SVN r15511
2014-03-26 16:16:02 +00:00
Dmitri Hrybenko
5e571043d8
Unindent and fix comment
...
Swift SVN r15506
2014-03-26 11:40:30 +00:00
Dmitri Hrybenko
94eb4f986a
Module interface printing: don't print { get set } when it is the default
...
rdar://16070050
Swift SVN r14286
2014-02-23 15:14:28 +00:00
Jordan Rose
0b2541b58f
Rename the standard library to "Swift" (instead of "swift")
...
This is more in line with all other modules currently on our system.
If/when we get our final name for the language, we're at least now set
up to rename the library without /too/ much trouble. (This is mostly just
a lot of searching for "import swift", "swift.", "'swift'", and '"swift"'.
The compiler itself is pretty much just using STDLIB_NAME consistently now,
per r13758.)
<rdar://problem/15972383>
Swift SVN r14001
2014-02-17 19:30:47 +00:00
Joe Groff
fb2ebf59f7
SIL: Parse and print SILFunction's context generic params.
...
- Alter parseSILType to take an optional GenericParamList out param to take the parsed GenericParamList, and use this to set the GenericParamList of parsed SILFunctions independent of their lowered type.
- Add a ContextGenericParams field to PrintOptions which, when set, provides a set of archetypes to print in place of the dependent types in an interface type.
- Use this to print the type of SILFunctions using their context generic params.
Swift SVN r13774
2014-02-11 04:03:59 +00:00
Dmitri Hrybenko
85b16aea10
Adjust comment for swift.Slice -> swift.Array rename
...
Swift SVN r11233
2013-12-13 02:27:53 +00:00
Dmitri Hrybenko
374aa1d57c
AST printing: when printing module interface, explode PatternBindingDecls
...
The exact pattern that was used to declare a variable is not important from the
module interface point of view.
Swift SVN r11231
2013-12-13 02:19:04 +00:00
Dmitri Hrybenko
ee8a9af14d
AST printer: add an option to print types qualified if they are possibly ambiguous
...
Swift SVN r11210
2013-12-12 21:25:05 +00:00
Dmitri Hrybenko
89a8cddbe0
AST Printer: add PrintOptions::SynthesizeSugarOnTypes for use by LLDB in some
...
cases
Swift SVN r9248
2013-10-12 00:43:32 +00:00
Dmitri Hrybenko
38994060d5
AST printing: merge swift::Type::PrintOptions into swift::PrintOptions
...
There is no reason to have two different options structs.
Swift SVN r8749
2013-09-28 02:19:31 +00:00
Anna Zaks
970bcd3bc6
fixup for r8625
...
Fix a copy and paste error + a better comment.
Thanks Dmitry.
Swift SVN r8631
2013-09-25 17:56:23 +00:00
Anna Zaks
30039a59f1
Emit Swift declarations when printing SIL.
...
Only print function member declarations and skip the bodies since the bodies are already represented in SIL and ASTPrinter is not good enough to print arbitrary expressions.
In order to have valid output, make sure that ASTPrinter does not print references to DynamicLookup protocol.
Swift SVN r8627
2013-09-25 17:08:42 +00:00
Dmitri Hrybenko
725b0e01eb
AST Printer: fix printing of same type requirement in generic parameter lists
...
These types are really the same for the type checker, so they are printed in
exactly the same way. To recover the original spelling, prefer to print
a TypeRepr, if available.
Swift SVN r8603
2013-09-24 21:16:35 +00:00
Doug Gregor
f3857df469
Implement an AST pretty-printer for declarations, under -print-ast.
...
Swift SVN r3431
2012-12-10 23:21:49 +00:00