mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add tests for IntegerLiteralExprSyntax.
This also fixes a typo in makePrefixOperator and implements IntegerLiteralExprSyntax::withSign.
This commit is contained in:
committed by
David Farler
parent
c58d94feb8
commit
c2aeb55119
@@ -910,7 +910,7 @@ GenericRequirementListSyntax SyntaxFactory::makeBlankGenericRequirementList() {
|
||||
|
||||
/// Make a prefix operator with the given text.
|
||||
RC<TokenSyntax>
|
||||
SyntaxFactory::makePrefixOpereator(OwnedString Name,
|
||||
SyntaxFactory::makePrefixOperator(OwnedString Name,
|
||||
const Trivia &LeadingTrivia) {
|
||||
return TokenSyntax::make(tok::oper_prefix, Name,
|
||||
SourcePresence::Present, LeadingTrivia, {});
|
||||
|
||||
Reference in New Issue
Block a user