mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
removed duplicate code
This commit is contained in:
+1
-18
@@ -431,24 +431,7 @@ module ts.formatting {
|
||||
}
|
||||
}
|
||||
|
||||
var increaseIndentation = SmartIndenter.nodeContentIsAlwaysIndented(child.kind);
|
||||
if (!increaseIndentation) {
|
||||
switch (child.kind) {
|
||||
case SyntaxKind.IfStatement:
|
||||
case SyntaxKind.ForInStatement:
|
||||
case SyntaxKind.ForStatement:
|
||||
case SyntaxKind.WhileStatement:
|
||||
case SyntaxKind.DoStatement:
|
||||
case SyntaxKind.FunctionExpression:
|
||||
case SyntaxKind.FunctionDeclaration:
|
||||
case SyntaxKind.Method:
|
||||
case SyntaxKind.GetAccessor:
|
||||
case SyntaxKind.SetAccessor:
|
||||
increaseIndentation = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (increaseIndentation) {
|
||||
if (shouldIndentChildNodes(child.kind)) {
|
||||
childDelta = options.IndentSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user