UNPKG

@gravityforms/gulp-tasks

Version:
32 lines (24 loc) 419 B
class Token { storedText = ''; lines = []; typeText = ''; constructor( text ) { this.storedText = text; } resetLines() { this.lines = []; } addLine( line ) { this.lines.push( line ); } isToken() { return this.tokenCondition( this.storedText ); } endConditionReached( line, prevLine ) { return this.endCondition( line, prevLine ); } type() { return this.typeText; } } export { Token };