MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getBranchTypeName

Function getBranchTypeName

compiler/companion/src/native/IRtoString.ts:83–90  ·  view source on GitHub ↗
(branchType: NativeCompilerBuilderBranchType)

Source from the content-addressed store, hash-verified

81}
82
83function getBranchTypeName(branchType: NativeCompilerBuilderBranchType): string {
84 switch (branchType) {
85 case NativeCompilerBuilderBranchType.Truthy:
86 return 'branch';
87 case NativeCompilerBuilderBranchType.NotUndefinedOrNull:
88 return 'nullable_branch';
89 }
90}
91
92function variableToString(variable: NativeCompilerBuilderVariableID): string {
93 return variable.variable.toString();

Callers 1

outputIRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected