Skip to content

Commit fbf48bb

Browse files
committed
Fix merge artifacts
1 parent a255fc9 commit fbf48bb

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

Sources/SwiftLexicalLookup/ScopeImplementations.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SwiftSyntax
1414

1515
@_spi(Experimental) extension SyntaxProtocol {
1616
/// Parent scope of this syntax node, or scope introduced by this syntax node.
17-
@_spi(Experimental) public var scope: ScopeSyntax? {
17+
var scope: ScopeSyntax? {
1818
if let scopeSyntax = Syntax(self).asProtocol(SyntaxProtocol.self) as? ScopeSyntax {
1919
return scopeSyntax
2020
} else {
@@ -358,15 +358,15 @@ import SwiftSyntax
358358
/// withing the accessor..
359359
@_spi(Experimental) public var introducedNames: [LookupName] {
360360
if let parameters {
361-
LookupName.getNames(from: parameters)
361+
return LookupName.getNames(from: parameters)
362362
} else {
363363
switch accessorSpecifier.tokenKind {
364364
case .keyword(.set), .keyword(.willSet):
365-
[.implicit(.newValue(self))]
365+
return [.implicit(.newValue(self))]
366366
case .keyword(.didSet):
367-
[.implicit(.oldValue(self))]
367+
return [.implicit(.oldValue(self))]
368368
default:
369-
[]
369+
return []
370370
}
371371
}
372372
}

Sources/SwiftSyntax/Identifier.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ public struct Identifier: Equatable, Hashable, Sendable {
3232
public var name: String {
3333
switch identifier {
3434
case .token(let raw, _):
35-
String(syntaxText: raw.name)
35+
return String(syntaxText: raw.name)
3636
case .string(let string):
37-
string
37+
return string
3838
}
3939
}
4040

4141
@_spi(RawSyntax)
4242
public var raw: RawIdentifier? {
4343
switch identifier {
4444
case .token(let raw, _):
45-
raw
45+
return raw
4646
default:
47-
nil
47+
return nil
4848
}
4949
}
5050

Tests/SwiftLexicalLookupTest/ExpectedName.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ enum ImplicitNameExpectation {
5151
.error(let marker),
5252
.newValue(let marker),
5353
.oldValue(let marker):
54-
marker
54+
return marker
5555
}
5656
}
5757
}
@@ -67,9 +67,9 @@ enum NameExpectation: ExpectedName {
6767
switch self {
6868
case .identifier(let marker),
6969
.declaration(let marker):
70-
marker
70+
return marker
7171
case .implicit(let implicitName):
72-
implicitName.marker
72+
return implicitName.marker
7373
}
7474
}
7575

Tests/SwiftLexicalLookupTest/ResultExpectation.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ enum ResultExpectation {
2222
var expectedNames: [ExpectedName] {
2323
switch self {
2424
case .fromScope(_, let expectedNames):
25-
expectedNames
25+
return expectedNames
2626
case .fromFileScope(expectedNames: let expectedNames):
27-
expectedNames
27+
return expectedNames
2828
}
2929
}
3030

3131
var debugDescription: String {
3232
switch self {
3333
case .fromScope:
34-
"fromScope"
34+
return "fromScope"
3535
case .fromFileScope:
36-
"fromFileScope"
36+
return "fromFileScope"
3737
}
3838
}
3939

@@ -65,9 +65,9 @@ extension LookupResult {
6565
var debugDescription: String {
6666
switch self {
6767
case .fromScope:
68-
"fromScope"
68+
return "fromScope"
6969
case .fromFileScope:
70-
"fromFileScope"
70+
return "fromFileScope"
7171
}
7272
}
7373
}

0 commit comments

Comments
 (0)