Unsorted replacements "jet" -> "kotlin"
#KT-2896 Fixed
This commit is contained in:
@@ -106,6 +106,6 @@ public class ScriptTest {
|
||||
|
||||
@NotNull
|
||||
private static List<AnalyzerScriptParameter> numIntParam() {
|
||||
return Collections.singletonList(new AnalyzerScriptParameter(Name.identifier("num"), JetTypeName.parse("jet.Int")));
|
||||
return Collections.singletonList(new AnalyzerScriptParameter(Name.identifier("num"), JetTypeName.parse("kotlin.Int")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,20 +126,20 @@ public class CodegenTestFiles {
|
||||
String valueString = scriptParametersMatcher.group(3);
|
||||
Object value;
|
||||
|
||||
if (type.equals("jet.String")) {
|
||||
if (type.equals("kotlin.String")) {
|
||||
value = valueString;
|
||||
}
|
||||
else if (type.equals("jet.Long")) {
|
||||
else if (type.equals("kotlin.Long")) {
|
||||
value = Long.parseLong(valueString);
|
||||
}
|
||||
else if (type.equals("jet.Int")) {
|
||||
else if (type.equals("kotlin.Int")) {
|
||||
value = Integer.parseInt(valueString);
|
||||
}
|
||||
else if (type.equals("jet.Array<jet.String>")) {
|
||||
else if (type.equals("kotlin.Array<kotlin.String>")) {
|
||||
value = valueString.split(" ");
|
||||
}
|
||||
else {
|
||||
throw new AssertionError("TODO");
|
||||
throw new AssertionError("TODO: " + type);
|
||||
}
|
||||
|
||||
scriptParameterTypes.add(new AnalyzerScriptParameter(Name.identifier(name), JetTypeName.parse(type)));
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ScriptGenTest extends CodegenTestCase {
|
||||
protected Object scriptInstance;
|
||||
|
||||
public static final JetScriptDefinition FIB_SCRIPT_DEFINITION =
|
||||
new JetScriptDefinition(".lang.kt", new AnalyzerScriptParameter("num", "jet.Int"));
|
||||
new JetScriptDefinition(".lang.kt", new AnalyzerScriptParameter("num", "kotlin.Int"));
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user