File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ extension Parser {
874
874
}
875
875
} while lookahead. at ( . poundIf) && lookahead. hasProgressed ( & loopProgress)
876
876
877
- guard lookahead. isAtStartOfPostfixExprSuffix ( ) else {
877
+ guard lookahead. atStartOfPostfixExprSuffix ( ) else {
878
878
break
879
879
}
880
880
}
@@ -2487,7 +2487,7 @@ extension Parser.Lookahead {
2487
2487
extension Parser . Lookahead {
2488
2488
// Helper function to see if we can parse member reference like suffixes
2489
2489
// inside '#if'.
2490
- fileprivate mutating func isAtStartOfPostfixExprSuffix ( ) -> Bool {
2490
+ fileprivate mutating func atStartOfPostfixExprSuffix ( ) -> Bool {
2491
2491
guard self . at ( . period) else {
2492
2492
return false
2493
2493
}
Original file line number Diff line number Diff line change @@ -1856,7 +1856,7 @@ extension Lexer.Cursor {
1856
1856
1857
1857
/// Returns `true` if the cursor is positioned at `\##(` with `delimiterLength`
1858
1858
/// pound characters.
1859
- private func atStringInterpolationAnchor ( delimiterLength: Int ) -> Bool {
1859
+ private func isAtStringInterpolationAnchor ( delimiterLength: Int ) -> Bool {
1860
1860
guard self . is ( at: " \\ " ) else {
1861
1861
return false
1862
1862
}
@@ -1868,7 +1868,7 @@ extension Lexer.Cursor {
1868
1868
1869
1869
/// Returns `true` if we are positioned at a backslash that escapes the newline
1870
1870
/// character in a multi-line string literal.
1871
- private func atEscapedNewline ( delimiterLength: Int ) -> Bool {
1871
+ private func isAtEscapedNewline ( delimiterLength: Int ) -> Bool {
1872
1872
guard self . is ( at: " \\ " ) else {
1873
1873
return false
1874
1874
}
@@ -1891,13 +1891,13 @@ extension Lexer.Cursor {
1891
1891
while true {
1892
1892
switch self . peek ( ) {
1893
1893
case UInt8 ( ascii: " \\ " ) :
1894
- if self . atStringInterpolationAnchor ( delimiterLength: delimiterLength) {
1894
+ if self . isAtStringInterpolationAnchor ( delimiterLength: delimiterLength) {
1895
1895
return Lexer . Result (
1896
1896
. stringSegment,
1897
1897
error: error,
1898
1898
stateTransition: . push( newState: . inStringInterpolationStart( stringLiteralKind: stringLiteralKind) )
1899
1899
)
1900
- } else if stringLiteralKind == . multiLine && self . atEscapedNewline ( delimiterLength: delimiterLength) {
1900
+ } else if stringLiteralKind == . multiLine && self . isAtEscapedNewline ( delimiterLength: delimiterLength) {
1901
1901
return Lexer . Result (
1902
1902
. stringSegment,
1903
1903
trailingTriviaLexingMode: . escapedNewlineInMultiLineStringLiteral
You can’t perform that action at this time.
0 commit comments