Function gobbleSingleArgument
- gobbleSingleArgument(nodes, argSpec, startPos?): {
argument: Argument | null;
nodesRemoved: number;
} Parameters
nodes: Node[]
startPos: number = 0
Returns {
argument: Argument | null;
nodesRemoved: number;
}
argument: Argument | null
nodesRemoved: number
Gobbles an argument of whose type is specified by
argSpec
starting at the positionstartPos
. If an argument couldn't be found,argument
will benull
.