setLengthVarIfKnown

Same as above, but determines the length from 'type'.

  1. void setLengthVarIfKnown(VarDeclaration lengthVar, Expression arr)
  2. void setLengthVarIfKnown(VarDeclaration lengthVar, Type type)
    package
    void
    setLengthVarIfKnown

Parameters

lengthVar VarDeclaration

variable declaration for the .length property

type Type

TypeSArray

Meta