Package com.valgolang.runtime.utility

Functions

convertToIdent
Link copied to clipboard
fun convertToIdent(dataStructureVariable: MutableSet<String>, variables: MutableMap<String, ExecValue>): MutableSet<String>
getBoundaries
Link copied to clipboard
fun getBoundaries(position: PositionProperties?): List<Pair<Double, Double>>
Gets boundaries as list of coordinates based on position properties.
makeExpressionNode
Link copied to clipboard
fun makeExpressionNode(value: ExecValue, lineNumber: Int): ExpressionNode
Utility to construct some basic expression nodes back from corresponding execution values.
wrapCode
Link copied to clipboard
fun wrapCode(code: MutableList<String>): MutableList<MutableList<String>>
Wrap code lines to prevent overly long lines during rendering.
wrapLine
Link copied to clipboard
fun wrapLine(line: String): Int
Wrap individual code line.
wrapString
Link copied to clipboard
fun wrapString(text: String, max_length: Int = WRAP_LINE_LENGTH): String
Formats text with \n insertions so each line is less than max_length.