Skip to content

Commit cf92e23

Browse files
authored
---
yaml --- r: 326398 b: refs/heads/master-next c: be87bd1 h: refs/heads/master
1 parent 659fe06 commit cf92e23

File tree

138 files changed

+2525
-1571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2525
-1571
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: e052da7d8886fa0439677852e8f7830b20c2e1da
3-
refs/heads/master-next: 4412a795bf3d98d4fc846f381376458c04e49734
3+
refs/heads/master-next: be87bd1b979bf71522338d9d103763e763e5a02e
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_16.04.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64)|
1919
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | ARMv7 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android)|
2020
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64)|
21-
|**[Ubuntu 16.04 (TensorFlow)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_tensorflow.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow)|
22-
|**[macOS 10.13 (TensorFlow)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_macos_high_sierra_tensorflow.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-macOS-tensorflow/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-macOS-tensorflow)|
23-
|**[Ubuntu 16.04 (TensorFlow with GPU)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_tensorflow_gpu.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu)|
24-
|**[Debian 9.5](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_debian_9.5.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-debian-9_5/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-debian-9_5)|
2521
|**[Windows 2019](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|
2622

23+
**Swift TensorFlow Community-Hosted CI Platforms**
24+
25+
| **OS** | **Architecture** | **Build** |
26+
|---|:---:|:---:|
27+
|**[Ubuntu 16.04](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_tensorflow.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow)|
28+
|**[macOS 10.13](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_macos_high_sierra_tensorflow.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-macOS-tensorflow/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-macOS-tensorflow)|
29+
|**[Ubuntu 16.04 (GPU)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_tensorflow_gpu.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu)|
2730

2831
## Welcome to Swift
2932

branches/master-next/cmake/modules/SwiftHandleGybSources.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ function(handle_gyb_sources dependency_out_var_name sources_var_name arch)
118118
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/AttributeNodes.py"
119119
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/AvailabilityNodes.py"
120120
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/CommonNodes.py"
121+
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/CompletionOnlyNodes.py"
121122
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/DeclNodes.py"
122123
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/ExprNodes.py"
123124
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/GenericNodes.py"

branches/master-next/include/swift/AST/ASTScope.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
/// \p message must be a string literal
4444
#define ASTScopeAssert(predicate, message) \
4545
assert((predicate) && message \
46-
" Try compiling with '-disable-astScope-lookup'.")
46+
" Try compiling with '-disable-astscope-lookup'.")
4747

4848
#define ASTScope_unreachable(message) \
49-
llvm_unreachable(message " Try compiling with '-disable-astScope-lookup'.")
49+
llvm_unreachable(message " Try compiling with '-disable-astscope-lookup'.")
5050

5151
namespace swift {
5252

branches/master-next/include/swift/AST/DiagnosticsSema.def

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,15 @@ NOTE(candidate_has_invalid_argument_at_position,none,
384384
"candidate expects value of type %0 at position #%1",
385385
(Type, unsigned))
386386

387+
ERROR(cannot_convert_array_to_variadic,none,
388+
"cannot pass array of type %0 as variadic arguments of type %1",
389+
(Type,Type))
390+
NOTE(candidate_would_match_array_to_variadic,none,
391+
"candidate would match if array elements were passed as"
392+
" variadic arguments of type %0", (Type))
393+
NOTE(suggest_pass_elements_directly,none,
394+
"remove brackets to pass array elements directly", ())
395+
387396
ERROR(cannot_convert_argument_value_generic,none,
388397
"cannot convert value of type %0 (%1) to expected argument type %2 (%3)",
389398
(Type, StringRef, Type, StringRef))

branches/master-next/include/swift/Option/FrontendOptions.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ def tbd_compatibility_version
8686
def tbd_compatibility_version_EQ : Joined<["-"], "tbd-compatibility-version=">,
8787
Alias<tbd_compatibility_version>;
8888

89+
def tbd_is_installapi: Flag<["-"], "tbd-is-installapi">,
90+
HelpText<"If the TBD file should indicate it's being generated during "
91+
"InstallAPI">;
92+
8993
def verify : Flag<["-"], "verify">,
9094
HelpText<"Verify diagnostics against expected-{error|warning|note} "
9195
"annotations">;

branches/master-next/include/swift/Parse/ASTGen.h

Lines changed: 134 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "swift/AST/ASTContext.h"
1717
#include "swift/AST/Decl.h"
1818
#include "swift/AST/Expr.h"
19+
#include "swift/AST/TypeRepr.h"
1920
#include "swift/Parse/PersistentParserState.h"
2021
#include "swift/Syntax/SyntaxNodes.h"
2122
#include "llvm/ADT/DenseMap.h"
@@ -31,87 +32,158 @@ class ASTGen {
3132

3233
Parser &P;
3334

34-
// FIXME: remove when Syntax can represent all types and ASTGen can handle them
35+
// FIXME: remove when Syntax can represent all types and ASTGen can handle
36+
// them
3537
/// Types that cannot be represented by Syntax or generated by ASTGen.
3638
llvm::DenseMap<SourceLoc, TypeRepr *> Types;
3739

3840
llvm::DenseMap<SourceLoc, DeclAttributes> ParsedDeclAttrs;
3941

4042
public:
41-
ASTGen(ASTContext &Context, Parser &P)
42-
: Context(Context), P(P) {}
43-
44-
SourceLoc generate(syntax::TokenSyntax Tok, SourceLoc &Loc);
45-
46-
Expr *generate(syntax::IntegerLiteralExprSyntax &Expr, SourceLoc &Loc);
47-
Expr *generate(syntax::FloatLiteralExprSyntax &Expr, SourceLoc &Loc);
48-
Expr *generate(syntax::NilLiteralExprSyntax &Expr, SourceLoc &Loc);
49-
Expr *generate(syntax::BooleanLiteralExprSyntax &Expr, SourceLoc &Loc);
50-
Expr *generate(syntax::PoundFileExprSyntax &Expr, SourceLoc &Loc);
51-
Expr *generate(syntax::PoundLineExprSyntax &Expr, SourceLoc &Loc);
52-
Expr *generate(syntax::PoundColumnExprSyntax &Expr, SourceLoc &Loc);
53-
Expr *generate(syntax::PoundFunctionExprSyntax &Expr, SourceLoc &Loc);
54-
Expr *generate(syntax::PoundDsohandleExprSyntax &Expr, SourceLoc &Loc);
55-
Expr *generate(syntax::UnknownExprSyntax &Expr, SourceLoc &Loc);
56-
57-
TypeRepr *generate(syntax::TypeSyntax Type, SourceLoc &Loc);
58-
TypeRepr *generate(syntax::SomeTypeSyntax Type, SourceLoc &Loc);
59-
TypeRepr *generate(syntax::CompositionTypeSyntax Type, SourceLoc &Loc);
60-
TypeRepr *generate(syntax::SimpleTypeIdentifierSyntax Type, SourceLoc &Loc);
61-
TypeRepr *generate(syntax::MemberTypeIdentifierSyntax Type, SourceLoc &Loc);
62-
TypeRepr *generate(syntax::DictionaryTypeSyntax Type, SourceLoc &Loc);
63-
TypeRepr *generate(syntax::ArrayTypeSyntax Type, SourceLoc &Loc);
64-
TypeRepr *generate(syntax::TupleTypeSyntax Type, SourceLoc &Loc);
65-
TypeRepr *generate(syntax::AttributedTypeSyntax Type, SourceLoc &Loc);
66-
TypeRepr *generate(syntax::FunctionTypeSyntax Type, SourceLoc &Loc);
67-
TypeRepr *generate(syntax::MetatypeTypeSyntax Type, SourceLoc &Loc);
68-
TypeRepr *generate(syntax::OptionalTypeSyntax Type, SourceLoc &Loc);
69-
TypeRepr *generate(syntax::ImplicitlyUnwrappedOptionalTypeSyntax Type, SourceLoc &Loc);
70-
TypeRepr *generate(syntax::UnknownTypeSyntax Type, SourceLoc &Loc);
71-
72-
TypeRepr *generate(syntax::GenericArgumentSyntax Arg, SourceLoc &Loc);
73-
llvm::SmallVector<TypeRepr *, 4>
74-
generate(syntax::GenericArgumentListSyntax Args, SourceLoc &Loc);
43+
ASTGen(ASTContext &Context, Parser &P) : Context(Context), P(P) {}
7544

76-
GenericParamList *
77-
generate(syntax::GenericParameterClauseListSyntax clause, SourceLoc &Loc);
78-
GenericParamList *
79-
generate(syntax::GenericParameterClauseSyntax clause, SourceLoc &Loc);
80-
Optional<RequirementRepr>
81-
generate(syntax::GenericRequirementSyntax req, SourceLoc &Loc);
82-
LayoutConstraint
83-
generate(syntax::LayoutConstraintSyntax req, SourceLoc &Loc);
45+
SourceLoc generate(const syntax::TokenSyntax &Tok, const SourceLoc Loc);
8446

85-
/// Copy a numeric literal value into AST-owned memory, stripping underscores
86-
/// so the semantic part of the value can be parsed by APInt/APFloat parsers.
87-
static StringRef copyAndStripUnderscores(StringRef Orig, ASTContext &Context);
47+
SourceLoc generateIdentifierDeclName(const syntax::TokenSyntax &Tok,
48+
const SourceLoc, Identifier &Identifier);
49+
50+
public:
51+
//===--------------------------------------------------------------------===//
52+
// Decls.
53+
54+
Decl *generate(const syntax::DeclSyntax &Decl, const SourceLoc Loc);
55+
TypeDecl *generate(const syntax::AssociatedtypeDeclSyntax &Decl,
56+
const SourceLoc Loc);
57+
58+
TrailingWhereClause *generate(const syntax::GenericWhereClauseSyntax &syntax,
59+
const SourceLoc Loc);
60+
MutableArrayRef<TypeLoc>
61+
generate(const syntax::TypeInheritanceClauseSyntax &syntax,
62+
const SourceLoc Loc, bool allowClassRequirement);
8863

8964
private:
90-
Expr *generateMagicIdentifierLiteralExpression(syntax::TokenSyntax PoundToken,
91-
SourceLoc &Loc);
65+
DeclAttributes
66+
generateDeclAttributes(const syntax::DeclSyntax &D,
67+
const Optional<syntax::AttributeListSyntax> &attrs,
68+
const Optional<syntax::ModifierListSyntax> &modifiers,
69+
SourceLoc Loc, bool includeComments);
70+
71+
public:
72+
//===--------------------------------------------------------------------===//
73+
// Expressions.
74+
75+
Expr *generate(const syntax::IntegerLiteralExprSyntax &Expr,
76+
const SourceLoc Loc);
77+
Expr *generate(const syntax::FloatLiteralExprSyntax &Expr,
78+
const SourceLoc Loc);
79+
Expr *generate(const syntax::NilLiteralExprSyntax &Expr, const SourceLoc Loc);
80+
Expr *generate(const syntax::BooleanLiteralExprSyntax &Expr,
81+
const SourceLoc Loc);
82+
Expr *generate(const syntax::PoundFileExprSyntax &Expr, const SourceLoc Loc);
83+
Expr *generate(const syntax::PoundLineExprSyntax &Expr, const SourceLoc Loc);
84+
Expr *generate(const syntax::PoundColumnExprSyntax &Expr,
85+
const SourceLoc Loc);
86+
Expr *generate(const syntax::PoundFunctionExprSyntax &Expr,
87+
const SourceLoc Loc);
88+
Expr *generate(const syntax::PoundDsohandleExprSyntax &Expr,
89+
const SourceLoc Loc);
90+
Expr *generate(const syntax::UnknownExprSyntax &Expr, const SourceLoc Loc);
91+
92+
private:
93+
Expr *generateMagicIdentifierLiteralExpression(
94+
const syntax::TokenSyntax &PoundToken, const SourceLoc Loc);
95+
96+
static MagicIdentifierLiteralExpr::Kind
97+
getMagicIdentifierLiteralKind(tok Kind);
98+
99+
public:
100+
//===--------------------------------------------------------------------===//
101+
// Types.
102+
103+
TypeRepr *generate(const syntax::TypeSyntax &Type, const SourceLoc Loc);
104+
TypeRepr *generate(const syntax::SomeTypeSyntax &Type, const SourceLoc Loc);
105+
TypeRepr *generate(const syntax::CompositionTypeSyntax &Type,
106+
const SourceLoc Loc);
107+
TypeRepr *generate(const syntax::SimpleTypeIdentifierSyntax &Type,
108+
const SourceLoc Loc);
109+
TypeRepr *generate(const syntax::MemberTypeIdentifierSyntax &Type,
110+
const SourceLoc Loc);
111+
TypeRepr *generate(const syntax::DictionaryTypeSyntax &Type,
112+
const SourceLoc Loc);
113+
TypeRepr *generate(const syntax::ArrayTypeSyntax &Type, const SourceLoc Loc);
114+
TypeRepr *generate(const syntax::TupleTypeSyntax &Type, const SourceLoc Loc);
115+
TypeRepr *generate(const syntax::AttributedTypeSyntax &Type,
116+
const SourceLoc Loc);
117+
TypeRepr *generate(const syntax::FunctionTypeSyntax &Type,
118+
const SourceLoc Loc);
119+
TypeRepr *generate(const syntax::MetatypeTypeSyntax &Type,
120+
const SourceLoc Loc);
121+
TypeRepr *generate(const syntax::OptionalTypeSyntax &Type,
122+
const SourceLoc Loc);
123+
TypeRepr *generate(const syntax::ImplicitlyUnwrappedOptionalTypeSyntax &Type,
124+
const SourceLoc Loc);
125+
TypeRepr *generate(const syntax::ClassRestrictionTypeSyntax &Type,
126+
const SourceLoc Loc);
127+
TypeRepr *generate(const syntax::CodeCompletionTypeSyntax &Type,
128+
const SourceLoc Loc);
129+
TypeRepr *generate(const syntax::UnknownTypeSyntax &Type,
130+
const SourceLoc Loc);
92131

93-
TupleTypeRepr *generateTuple(syntax::TokenSyntax LParen,
94-
syntax::TupleTypeElementListSyntax Elements,
95-
syntax::TokenSyntax RParen, SourceLoc &Loc,
96-
bool IsFunction = false);
132+
private:
133+
TupleTypeRepr *
134+
generateTuple(const syntax::TokenSyntax &LParen,
135+
const syntax::TupleTypeElementListSyntax &Elements,
136+
const syntax::TokenSyntax &RParen, const SourceLoc Loc,
137+
bool IsFunction = false);
97138

98139
void gatherTypeIdentifierComponents(
99-
syntax::TypeSyntax Component, SourceLoc &Loc,
140+
const syntax::TypeSyntax &Component, const SourceLoc Loc,
100141
llvm::SmallVectorImpl<ComponentIdentTypeRepr *> &Components);
101142

102143
template <typename T>
103-
TypeRepr *generateSimpleOrMemberIdentifier(T Type, SourceLoc &Loc);
144+
TypeRepr *generateSimpleOrMemberIdentifier(const T &Type,
145+
const SourceLoc Loc);
104146

105147
template <typename T>
106-
ComponentIdentTypeRepr *generateIdentifier(T Type, SourceLoc &Loc);
148+
ComponentIdentTypeRepr *generateIdentifier(const T &Type,
149+
const SourceLoc Loc);
150+
151+
public:
152+
//===--------------------------------------------------------------------===//
153+
// Generics.
154+
155+
TypeRepr *generate(const syntax::GenericArgumentSyntax &Arg,
156+
const SourceLoc Loc);
157+
llvm::SmallVector<TypeRepr *, 4>
158+
generate(const syntax::GenericArgumentListSyntax &Args, const SourceLoc Loc);
159+
160+
GenericParamList *
161+
generate(const syntax::GenericParameterClauseListSyntax &clause,
162+
const SourceLoc Loc);
163+
GenericParamList *generate(const syntax::GenericParameterClauseSyntax &clause,
164+
const SourceLoc Loc);
165+
Optional<RequirementRepr>
166+
generate(const syntax::GenericRequirementSyntax &req, const SourceLoc Loc);
167+
LayoutConstraint generate(const syntax::LayoutConstraintSyntax &req,
168+
const SourceLoc Loc);
169+
170+
public:
171+
//===--------------------------------------------------------------------===//
172+
// Utilities.
173+
174+
/// Copy a numeric literal value into AST-owned memory, stripping underscores
175+
/// so the semantic part of the value can be parsed by APInt/APFloat parsers.
176+
static StringRef copyAndStripUnderscores(StringRef Orig, ASTContext &Context);
107177

178+
private:
108179
StringRef copyAndStripUnderscores(StringRef Orig);
109180

181+
/// Advance \p Loc to the first token of the \p Node.
182+
/// \p Loc must be the leading trivia of the first token in the tree in which
183+
/// \p Node resides.
110184
static SourceLoc advanceLocBegin(const SourceLoc &Loc,
111185
const syntax::Syntax &Node);
112186

113-
static MagicIdentifierLiteralExpr::Kind getMagicIdentifierLiteralKind(tok Kind);
114-
115187
ValueDecl *lookupInScope(DeclName Name);
116188

117189
void addToScope(ValueDecl *D, bool diagnoseRedefinitions = true);
@@ -121,15 +193,13 @@ class ASTGen {
121193
TypeRepr *lookupType(syntax::TypeSyntax Type);
122194

123195
public:
124-
TypeRepr *addType(TypeRepr *Type, const SourceLoc &Loc);
125-
126-
bool hasType(const SourceLoc &Loc) const;
127-
128-
TypeRepr *getType(const SourceLoc &Loc) const;
196+
void addType(TypeRepr *Type, const SourceLoc Loc);
197+
bool hasType(const SourceLoc Loc) const;
198+
TypeRepr *getType(const SourceLoc Loc) const;
129199

130-
void addDeclAttributes(DeclAttributes attrs, SourceLoc Loc);
200+
void addDeclAttributes(DeclAttributes attrs, const SourceLoc Loc);
131201
bool hasDeclAttributes(SourceLoc Loc) const;
132-
DeclAttributes getDeclAttributes(SourceLoc Loc) const;
202+
DeclAttributes getDeclAttributes(const SourceLoc Loc) const;
133203
};
134204
} // namespace swift
135205

branches/master-next/include/swift/Parse/CodeCompletionCallbacks.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class CodeCompletionCallbacks {
4040
/// completion. This declaration contained the code completion token.
4141
Decl *ParsedDecl = nullptr;
4242

43+
TypeLoc ParsedTypeLoc;
44+
4345
/// True if code completion is done inside a raw value expression of an enum
4446
/// case.
4547
bool InEnumElementRawValue = false;
@@ -76,6 +78,10 @@ class CodeCompletionCallbacks {
7678
ParsedDecl = D;
7779
}
7880

81+
void setParsedTypeLoc(TypeLoc TyLoc) {
82+
ParsedTypeLoc = TyLoc;
83+
}
84+
7985
void setLeadingSequenceExprs(ArrayRef<Expr *> exprs) {
8086
leadingSequenceExprs.assign(exprs.begin(), exprs.end());
8187
}
@@ -159,10 +165,10 @@ class CodeCompletionCallbacks {
159165
virtual void completeTypeSimpleBeginning() {};
160166

161167
/// Complete a given type-identifier after we have consumed the dot.
162-
virtual void completeTypeIdentifierWithDot(IdentTypeRepr *ITR) {};
168+
virtual void completeTypeIdentifierWithDot() {};
163169

164170
/// Complete a given type-identifier when there is no trailing dot.
165-
virtual void completeTypeIdentifierWithoutDot(IdentTypeRepr *ITR) {};
171+
virtual void completeTypeIdentifierWithoutDot() {};
166172

167173
/// Complete the beginning of a case statement at the top of switch stmt.
168174
virtual void completeCaseStmtKeyword() {};

branches/master-next/include/swift/Parse/LibSyntaxGenerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class LibSyntaxGenerator {
3838
assert(Node.isDeferredToken());
3939

4040
auto Kind = Node.getTokenKind();
41-
auto Range = Node.getDeferredTokenRangeWithTrivia();
41+
auto Range = Node.getDeferredTokenRange();
4242
auto LeadingTriviaPieces = Node.getDeferredLeadingTriviaPieces();
4343
auto TrailingTriviaPieces = Node.getDeferredTrailingTriviaPieces();
4444

branches/master-next/include/swift/Parse/ParsedSyntaxBuilders.h.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace swift {
3030
class ParsedRawSyntaxRecorder;
3131
class SyntaxParsingContext;
3232

33-
% for node in SYNTAX_NODES + SILONLY_NODES:
33+
% for node in SYNTAX_NODES + PARSEONLY_NODES:
3434
% if node.is_buildable():
3535
% child_count = len(node.children)
3636
class Parsed${node.name}Builder {

0 commit comments

Comments
 (0)