Skip to content

Commit 5f39519

Browse files
committed
---
yaml --- r: 274303 b: refs/heads/master-next c: 8e7ff01 h: refs/heads/master i: 274301: 338a124 274299: 1b9e24a 274295: 803afb9 274287: ac246f8 274271: 9228d9d 274239: ea4c377 274175: 26772a9
1 parent 774d5a1 commit 5f39519

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
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: cbef630f19f869ab5279731179bd731f12b3b9d5
3-
refs/heads/master-next: d776cf59969a53a6134d1b9c5b1cac03cc81afc4
3+
refs/heads/master-next: 8e7ff01caa0a58f01508e193901de909c636cfec
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/lib/AST/NameLookup.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,21 +1388,21 @@ namespace {
13881388
nonoperatorScopeForASTScopeLookup(DeclContext *dc,
13891389
Optional<bool> isCascadingUse) const;
13901390

1391-
struct lookInScopeForASTScopeLookupResult {
1391+
struct LookInScopeForASTScopeLookupResult {
13921392
bool isDone; // Searching outers
13931393
DeclContext *selfDC;
13941394
DeclContext *dc;
13951395
Optional<bool>isCascadingUse;
13961396
};
13971397

13981398
/// Return status and new selfDC and new DC
1399-
Optional<lookInScopeForASTScopeLookupResult>
1399+
Optional<LookInScopeForASTScopeLookupResult>
14001400
lookInScopeForASTScopeLookup(const ASTScope *const currentScope,
14011401
DeclContext *selfDC, DeclContext *dc,
14021402
const Optional<bool> isCascadingUse);
14031403

14041404
/// Returns status and selfDC and DC
1405-
Optional<lookInScopeForASTScopeLookupResult>
1405+
Optional<LookInScopeForASTScopeLookupResult>
14061406
lookIntoDeclarationContextForASTScopeLookup(DeclContext *dc,
14071407
DeclContext *selfDC,
14081408
DeclContext *wasDC,
@@ -1700,7 +1700,7 @@ UnqualifiedLookupFactory::nonoperatorScopeForASTScopeLookup(
17001700
return std::make_pair(lookupScope, isCascadingUse);
17011701
}
17021702

1703-
Optional<UnqualifiedLookupFactory::lookInScopeForASTScopeLookupResult>
1703+
Optional<UnqualifiedLookupFactory::LookInScopeForASTScopeLookupResult>
17041704
UnqualifiedLookupFactory::lookInScopeForASTScopeLookup(
17051705
const ASTScope *const currentScope, DeclContext *selfDC, DeclContext *dc,
17061706
const Optional<bool> isCascadingUse) {
@@ -1721,7 +1721,7 @@ UnqualifiedLookupFactory::lookInScopeForASTScopeLookup(
17211721
->getDeclContext()
17221722
->isTypeContext()) {
17231723
selfDC = currentScope->getAbstractFunctionDecl();
1724-
return lookInScopeForASTScopeLookupResult{false, selfDC, dc,
1724+
return LookInScopeForASTScopeLookupResult{false, selfDC, dc,
17251725
isCascadingUse};
17261726
}
17271727

@@ -1730,10 +1730,10 @@ UnqualifiedLookupFactory::lookInScopeForASTScopeLookup(
17301730
if (auto scopeDC = currentScope->getDeclContext())
17311731
return lookIntoDeclarationContextForASTScopeLookup(scopeDC, selfDC, dc,
17321732
isCascadingUse);
1733-
return lookInScopeForASTScopeLookupResult{false, selfDC, dc, isCascadingUse};
1733+
return LookInScopeForASTScopeLookupResult{false, selfDC, dc, isCascadingUse};
17341734
}
17351735

1736-
Optional<UnqualifiedLookupFactory::lookInScopeForASTScopeLookupResult>
1736+
Optional<UnqualifiedLookupFactory::LookInScopeForASTScopeLookupResult>
17371737
UnqualifiedLookupFactory::lookIntoDeclarationContextForASTScopeLookup(
17381738
DeclContext *dc, DeclContext *selfDC, DeclContext *wasDC,
17391739
Optional<bool> isCascadingUse) {
@@ -1750,54 +1750,54 @@ UnqualifiedLookupFactory::lookIntoDeclarationContextForASTScopeLookup(
17501750
if (bindingInit->getImplicitSelfDecl())
17511751
selfDC = bindingInit;
17521752

1753-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1753+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17541754
isCascadingUseResult};
17551755
}
17561756

17571757
// Default arguments only have 'static' access to the members of the
17581758
// enclosing type, if there is one.
17591759
if (isa<DefaultArgumentInitializer>(dc))
1760-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1760+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17611761
isCascadingUseResult};
17621762

17631763
// Functions/initializers/deinitializers are only interesting insofar as
17641764
// they affect lookup in an enclosing nominal type or extension thereof.
17651765
if (isa<AbstractFunctionDecl>(dc))
1766-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1766+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17671767
isCascadingUseResult};
17681768

17691769
// Subscripts have no lookup of their own.
17701770
if (isa<SubscriptDecl>(dc))
1771-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1771+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17721772
isCascadingUseResult};
17731773

17741774
// Closures have no lookup of their own.
17751775
if (isa<AbstractClosureExpr>(dc))
1776-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1776+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17771777
isCascadingUseResult};
17781778

17791779
// Top-level declarations have no lookup of their own.
17801780
if (isa<TopLevelCodeDecl>(dc))
1781-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1781+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17821782
isCascadingUseResult};
17831783

17841784
// Typealiases have no lookup of their own.
17851785
if (isa<TypeAliasDecl>(dc))
1786-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1786+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
17871787
isCascadingUseResult};
17881788

17891789
// Lookup in the source file's scope marks the end.
17901790
if (isa<SourceFile>(dc)) {
17911791
// FIXME: A bit of a hack.
1792-
return lookInScopeForASTScopeLookupResult{true, selfDC, dc,
1792+
return LookInScopeForASTScopeLookupResult{true, selfDC, dc,
17931793
isCascadingUseResult};
17941794
}
17951795

17961796
// We have a nominal type or an extension thereof. Perform lookup into
17971797
// the nominal type.
17981798
auto nominal = dc->getSelfNominalTypeDecl();
17991799
if (!nominal)
1800-
return lookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
1800+
return LookInScopeForASTScopeLookupResult{false, selfDC, wasDC,
18011801
isCascadingUseResult};
18021802

18031803
// Dig out the type we're looking into.
@@ -1849,7 +1849,7 @@ UnqualifiedLookupFactory::lookIntoDeclarationContextForASTScopeLookup(
18491849
// Forget the 'self' declaration.
18501850
selfDC = nullptr;
18511851

1852-
return lookInScopeForASTScopeLookupResult{false, selfDC, dc,
1852+
return LookInScopeForASTScopeLookupResult{false, selfDC, dc,
18531853
isCascadingUseResult};
18541854
}
18551855

0 commit comments

Comments
 (0)