Skip to content

Commit 659fe06

Browse files
committed
---
yaml --- r: 326397 b: refs/heads/master-next c: 4412a79 h: refs/heads/master i: 326395: d6aa416
1 parent 2511a98 commit 659fe06

File tree

139 files changed

+1572
-2526
lines changed

Some content is hidden

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

139 files changed

+1572
-2526
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: 9f1ce1b1e4fea2a9dc7dca9838c406b290d13607
3+
refs/heads/master-next: 4412a795bf3d98d4fc846f381376458c04e49734
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: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
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)|
2125
|**[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)|
2226

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)|
3027

3128
## Welcome to Swift
3229

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ 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"
122121
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/DeclNodes.py"
123122
"${SWIFT_SOURCE_DIR}/utils/gyb_syntax_support/ExprNodes.py"
124123
"${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: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,6 @@ 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-
396387
ERROR(cannot_convert_argument_value_generic,none,
397388
"cannot convert value of type %0 (%1) to expected argument type %2 (%3)",
398389
(Type, StringRef, Type, StringRef))

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ 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-
9389
def verify : Flag<["-"], "verify">,
9490
HelpText<"Verify diagnostics against expected-{error|warning|note} "
9591
"annotations">;

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

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

3332
Parser &P;
3433

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

4038
llvm::DenseMap<SourceLoc, DeclAttributes> ParsedDeclAttrs;
4139

4240
public:
43-
ASTGen(ASTContext &Context, Parser &P) : Context(Context), P(P) {}
44-
45-
SourceLoc generate(const syntax::TokenSyntax &Tok, const SourceLoc Loc);
46-
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);
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);
6375

64-
private:
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);
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);
7084

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);
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);
9188

9289
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);
90+
Expr *generateMagicIdentifierLiteralExpression(syntax::TokenSyntax PoundToken,
91+
SourceLoc &Loc);
13192

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);
93+
TupleTypeRepr *generateTuple(syntax::TokenSyntax LParen,
94+
syntax::TupleTypeElementListSyntax Elements,
95+
syntax::TokenSyntax RParen, SourceLoc &Loc,
96+
bool IsFunction = false);
13897

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

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

147105
template <typename T>
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);
106+
ComponentIdentTypeRepr *generateIdentifier(T Type, SourceLoc &Loc);
177107

178-
private:
179108
StringRef copyAndStripUnderscores(StringRef Orig);
180109

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.
184110
static SourceLoc advanceLocBegin(const SourceLoc &Loc,
185111
const syntax::Syntax &Node);
186112

113+
static MagicIdentifierLiteralExpr::Kind getMagicIdentifierLiteralKind(tok Kind);
114+
187115
ValueDecl *lookupInScope(DeclName Name);
188116

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

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

200-
void addDeclAttributes(DeclAttributes attrs, const SourceLoc Loc);
130+
void addDeclAttributes(DeclAttributes attrs, SourceLoc Loc);
201131
bool hasDeclAttributes(SourceLoc Loc) const;
202-
DeclAttributes getDeclAttributes(const SourceLoc Loc) const;
132+
DeclAttributes getDeclAttributes(SourceLoc Loc) const;
203133
};
204134
} // namespace swift
205135

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

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

43-
TypeLoc ParsedTypeLoc;
44-
4543
/// True if code completion is done inside a raw value expression of an enum
4644
/// case.
4745
bool InEnumElementRawValue = false;
@@ -78,10 +76,6 @@ class CodeCompletionCallbacks {
7876
ParsedDecl = D;
7977
}
8078

81-
void setParsedTypeLoc(TypeLoc TyLoc) {
82-
ParsedTypeLoc = TyLoc;
83-
}
84-
8579
void setLeadingSequenceExprs(ArrayRef<Expr *> exprs) {
8680
leadingSequenceExprs.assign(exprs.begin(), exprs.end());
8781
}
@@ -165,10 +159,10 @@ class CodeCompletionCallbacks {
165159
virtual void completeTypeSimpleBeginning() {};
166160

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

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

173167
/// Complete the beginning of a case statement at the top of switch stmt.
174168
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.getDeferredTokenRange();
41+
auto Range = Node.getDeferredTokenRangeWithTrivia();
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 + PARSEONLY_NODES:
33+
% for node in SYNTAX_NODES + SILONLY_NODES:
3434
% if node.is_buildable():
3535
% child_count = len(node.children)
3636
class Parsed${node.name}Builder {

0 commit comments

Comments
 (0)