@@ -210,7 +210,7 @@ extension Parser {
210210 }
211211
212212 let version : RawVersionTupleSyntax ?
213- if self . at ( . integerLiteral, . floatingLiteral ) {
213+ if self . at ( . integerLiteral, . floatLiteral ) {
214214 version = self . parseVersionTuple ( maxComponentCount: 3 )
215215 } else {
216216 version = nil
@@ -237,7 +237,7 @@ extension Parser {
237237 return self . consumeAnyToken ( )
238238 }
239239
240- /// Consume the unexpected version token(e.g. integerLiteral, floatingLiteral , identifier) until the period no longer appears.
240+ /// Consume the unexpected version token(e.g. integerLiteral, floatLiteral , identifier) until the period no longer appears.
241241 private mutating func parseUnexpectedVersionTokens( ) -> RawUnexpectedNodesSyntax ? {
242242 var unexpectedTokens : [ RawTokenSyntax ] = [ ]
243243 var keepGoing : RawTokenSyntax ? = nil
@@ -246,7 +246,7 @@ extension Parser {
246246 if let keepGoing {
247247 unexpectedTokens. append ( keepGoing)
248248 }
249- if let unexpectedVersion = self . consume ( if: . integerLiteral, . floatingLiteral , . identifier) {
249+ if let unexpectedVersion = self . consume ( if: . integerLiteral, . floatLiteral , . identifier) {
250250 unexpectedTokens. append ( unexpectedVersion)
251251 }
252252 keepGoing = self . consume ( if: . period)
@@ -256,7 +256,7 @@ extension Parser {
256256
257257 /// Parse a dot-separated list of version numbers.
258258 mutating func parseVersionTuple( maxComponentCount: Int ) -> RawVersionTupleSyntax {
259- if self . at ( . floatingLiteral ) ,
259+ if self . at ( . floatLiteral ) ,
260260 let periodIndex = self . currentToken. tokenText. firstIndex ( of: UInt8 ( ascii: " . " ) ) ,
261261 self . currentToken. tokenText [ 0 ..< periodIndex] . allSatisfy ( { Unicode . Scalar ( $0) . isDigit } )
262262 {
0 commit comments