@@ -51,11 +51,11 @@ Action(llvm::cl::desc("kind:"), llvm::cl::init(RefactoringKind::None),
51
51
clEnumValN(RefactoringKind::ConvertStringsConcatenationToInterpolation,
52
52
" strings-concatenation-to-interpolation" , " Perform strings concatenation to interpolation refactoring" ),
53
53
clEnumValN(RefactoringKind::ExpandTernaryExpr,
54
- " expand-ternary-expr" , " Perform expand ternary expression" ),
54
+ " expand-ternary-expr" , " Perform expand ternary expression" ),
55
55
clEnumValN(RefactoringKind::ConvertToTernaryExpr,
56
56
" convert-to-ternary-expr" , " Perform convert to ternary expression" ),
57
- clEnumValN(RefactoringKind::ConvertIfLetExprToGuardExpr,
58
- " convert-to-guard" , " Perform convert to guard expression" ),
57
+ clEnumValN(RefactoringKind::ConvertIfLetExprToGuardExpr,
58
+ " convert-to-guard" , " Perform convert to guard expression" ),
59
59
clEnumValN(RefactoringKind::ConvertGuardExprToIfLetExpr,
60
60
" convert-to-iflet" , " Perform convert to iflet expression" ),
61
61
clEnumValN(RefactoringKind::ExtractFunction,
@@ -75,8 +75,8 @@ Action(llvm::cl::desc("kind:"), llvm::cl::init(RefactoringKind::None),
75
75
clEnumValN(RefactoringKind::MemberwiseInitLocalRefactoring, " memberwise-init" , " Generate member wise initializer" ),
76
76
clEnumValN(RefactoringKind::AddEquatableConformance, " add-equatable-conformance" , " Add Equatable conformance" ),
77
77
clEnumValN(RefactoringKind::ConvertToComputedProperty,
78
- " convert-to-computed-property" , " Convert from field initialization to computed property" ),
79
- clEnumValN(RefactoringKind::ConvertToSwitchStmt, " convert-to-switch-stmt" , " Perform convert to switch statement" )));
78
+ " convert-to-computed-property" , " Convert from field initialization to computed property" ),
79
+ clEnumValN(RefactoringKind::ConvertToSwitchStmt, " convert-to-switch-stmt" , " Perform convert to switch statement" ),
80
80
81
81
82
82
static llvm::cl::opt<std::string>
@@ -113,8 +113,8 @@ IsNonProtocolType("is-non-protocol-type",
113
113
llvm::cl::desc (" The symbol being renamed is a type and not a protocol" ));
114
114
115
115
static llvm::cl::opt<bool >
116
- DumpInJason (" dump-json" ,
117
- llvm::cl::desc (" Whether to dump refactoring edits in Json " ),
116
+ DumpInJson (" dump-json" ,
117
+ llvm::cl::desc (" Whether to dump refactoring edits in json " ),
118
118
llvm::cl::init(false ));
119
119
120
120
static llvm::cl::opt<bool >
@@ -373,7 +373,7 @@ int main(int argc, char *argv[]) {
373
373
RefactoringConfig.PreferredName = options::NewName;
374
374
std::string Error;
375
375
std::unique_ptr<SourceEditConsumer> pConsumer;
376
- if (options::DumpInJason )
376
+ if (options::DumpInJson )
377
377
pConsumer.reset (new SourceEditJsonConsumer (llvm::outs ()));
378
378
else
379
379
pConsumer.reset (new SourceEditOutputConsumer (SF->getASTContext ().SourceMgr ,
0 commit comments