Minor: make some util functions public
I'm going to use it in Fe10Binding to create descriptors for special constructions
This commit is contained in:
committed by
teamcity
parent
66851c7afd
commit
3f99e2391b
+15
-1
@@ -194,6 +194,19 @@ public class ControlStructureTypingUtils {
|
||||
@NotNull ResolveConstruct construct,
|
||||
@NotNull List<String> argumentNames,
|
||||
@NotNull List<Boolean> isArgumentNullable
|
||||
) {
|
||||
return createFunctionDescriptorForSpecialConstruction(construct, argumentNames, isArgumentNullable, moduleDescriptor,
|
||||
storageManager);
|
||||
}
|
||||
|
||||
// used in Fe10Binding in FIR IDE
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public static SimpleFunctionDescriptorImpl createFunctionDescriptorForSpecialConstruction(
|
||||
@NotNull ResolveConstruct construct,
|
||||
@NotNull List<String> argumentNames,
|
||||
@NotNull List<Boolean> isArgumentNullable,
|
||||
@NotNull ModuleDescriptor moduleDescriptor,
|
||||
@NotNull StorageManager storageManager
|
||||
) {
|
||||
assert argumentNames.size() == isArgumentNullable.size();
|
||||
|
||||
@@ -310,7 +323,8 @@ public class ControlStructureTypingUtils {
|
||||
return createIndependentDataFlowInfoForArgumentsForCall(dataFlowInfoBeforeTry, dataFlowInfoForArgumentsMap);
|
||||
}
|
||||
|
||||
/*package*/ static Call createCallForSpecialConstruction(
|
||||
// Used in Fe10Binding in FIR IDE
|
||||
public static Call createCallForSpecialConstruction(
|
||||
@NotNull KtExpression expression,
|
||||
@NotNull KtExpression calleeExpression,
|
||||
@NotNull List<? extends KtExpression> arguments
|
||||
|
||||
Reference in New Issue
Block a user