Skip to main content

Class: ParserResult

Constructors

new ParserResult()

new ParserResult(parser: Parser): ParserResult

Parameters

ParameterType
parserParser

Returns

ParserResult

Source

lib/parser/ParserResult.ts:11

Properties

flags

readonly flags: Set<string>

Source

lib/parser/ParserResult.ts:7


options

readonly options: Map<string, string[]>

Source

lib/parser/ParserResult.ts:8


ordered

readonly ordered: Parameter[] = []

Source

lib/parser/ParserResult.ts:6


strategy

private readonly strategy: IUnorderedStrategy

Source

lib/parser/ParserResult.ts:9

Methods

parse()

parse(parameters: Iterable <Parameter>): ParserResult

Parameters

ParameterType
parametersIterable <Parameter>

Returns

ParserResult

Source

lib/parser/ParserResult.ts:15


parseOrdered()

private parseOrdered(parameter: Parameter): boolean

Parameters

ParameterType
parameterParameter

Returns

boolean

Source

lib/parser/ParserResult.ts:41


parsePossibleFlag()

private parsePossibleFlag(parameter: Parameter): boolean

Parameters

ParameterType
parameterParameter

Returns

boolean

Source

lib/parser/ParserResult.ts:23


parsePossibleOptions()

private parsePossibleOptions(parameter: Parameter): boolean

Parameters

ParameterType
parameterParameter

Returns

boolean

Source

lib/parser/ParserResult.ts:30