@@ -163,8 +163,8 @@ export class TextPlugin extends FunctionPlugin implements FunctionPluginTypechec
163163 *
164164 * Concatenates provided arguments to one string.
165165 *
166- * @param ast
167- * @param state
166+ * @param { ProcedureAst } ast - The procedure AST node
167+ * @param { InterpreterState } state - The interpreter state
168168 */
169169 public concatenate ( ast : ProcedureAst , state : InterpreterState ) : InterpreterValue {
170170 return this . runFunction ( ast . args , state , this . metadata ( 'CONCATENATE' ) , ( ...args ) => {
@@ -177,8 +177,8 @@ export class TextPlugin extends FunctionPlugin implements FunctionPluginTypechec
177177 *
178178 * Splits provided string using space separator and returns chunk at zero-based position specified by second argument
179179 *
180- * @param ast
181- * @param state
180+ * @param { ProcedureAst } ast - The procedure AST node
181+ * @param { InterpreterState } state - The interpreter state
182182 */
183183 public split ( ast : ProcedureAst , state : InterpreterState ) : InterpreterValue {
184184 return this . runFunction ( ast . args , state , this . metadata ( 'SPLIT' ) , ( stringToSplit : string , indexToUse : number ) => {
@@ -388,8 +388,8 @@ export class TextPlugin extends FunctionPlugin implements FunctionPluginTypechec
388388 *
389389 * Converts a text string that represents a number to a number.
390390 *
391- * @param ast
392- * @param state
391+ * @param { ProcedureAst } ast - The procedure AST node
392+ * @param { InterpreterState } state - The interpreter state
393393 */
394394 public value ( ast : ProcedureAst , state : InterpreterState ) : InterpreterValue {
395395 return this . runFunction ( ast . args , state , this . metadata ( 'VALUE' ) , ( arg : RawScalarValue ) : ExtendedNumber | CellError => {
@@ -424,6 +424,12 @@ export class TextPlugin extends FunctionPlugin implements FunctionPluginTypechec
424424 } )
425425 }
426426
427+ /**
428+ * Parses a string to a numeric value, handling whitespace trimming and empty string validation.
429+ *
430+ * @param {string } input - The string to parse
431+ * @returns {Maybe<ExtendedNumber> } The parsed number or undefined if parsing fails or input is empty
432+ */
427433 private parseStringToNumber ( input : string ) : Maybe < ExtendedNumber > {
428434 const trimmedInput = input . trim ( )
429435
0 commit comments