OperationSizeForStatements returns the sum of OperationSize for every statement.
(stmts []Statement)
| 450 | |
| 451 | // OperationSizeForStatements returns the sum of OperationSize for every statement. |
| 452 | func OperationSizeForStatements(stmts []Statement) int32 { |
| 453 | total := int32(0) |
| 454 | for _, stmt := range stmts { |
| 455 | total += stmt.OperationSize() |
| 456 | } |
| 457 | return total |
| 458 | } |
| 459 | |
| 460 | // substituteVariableReferences parses the specified |expression| and replaces |
| 461 | // any token that matches a variable name in the |stack| with "$N", where N |