import { EqlSingle , Neq } from '../grammar/parser.terms' ; export class Matcher { type : number ; name : string ; value : string ; constructor ( type , name , value ) { this . type = type ; this . name = name ; this . value = value ; } matchesEmpty ( ) { switch ( this . type ) { case EqlSingle : return this . value === '' ; case Neq : return this . value !== '' ; default : return false ; } } }