autoformat

This commit is contained in:
Chris Smowton
2021-08-31 11:53:13 +01:00
parent adcb90aa8c
commit 5dddc48e60
2 changed files with 9 additions and 4 deletions

View File

@@ -269,11 +269,14 @@ class TestCase extends TTestCase {
SupportMethod getASupportMethod() {
exists(SummaryComponentStack s | s = input.drop(_) and s.tail() != baseInput |
result = SupportMethod::genMethodForContent(s)
) or
)
or
exists(SummaryComponentStack s | s = input.drop(_) and s.tail() = baseInput |
result = SupportMethod::genMethodFor(this.getInputType(), s)
) or
result = SupportMethod::getMethodFor(this.getOutputType(), output) or
)
or
result = SupportMethod::getMethodFor(this.getOutputType(), output)
or
result = SupportMethod::getMethodForContent(output.tail().drop(_))
}

View File

@@ -389,6 +389,8 @@ private class ArrayGenMethod extends GenMethod {
bindingset[arg]
override string getCall(string arg) {
result = "new " + getShortNameIfPossible(type) + "{" + getConvertExprIfNotObject(type.getComponentType()) + arg + "}"
result =
"new " + getShortNameIfPossible(type) + "{" +
getConvertExprIfNotObject(type.getComponentType()) + arg + "}"
}
}