import { CommandNode } from "../Tokenization/Nodes/CommandNode" ; import { IParameter } from "./Commands/Metadata/Parameters/Parameter" ; /**
 * Validates whether input parameters match command requirements.
 */ export class ParametersValidator { param node param requirements public validate ( node , requirements ) { let inputPosition = 0 ; for ( let i = 0 ; i < requirements . length ; i += 1 ) { const requirement = requirements [ i ] ; inputPosition = requirement . validate ( node , inputPosition , requirements , i ) ; } } }