import * as Json from "../language/json/JSON" ; /**
 * A visitor for Json.StringValue that calls generic code for each JSON string in the given value's subtree (inclusive)
 */ export class GenericStringVisitor extends Json . Visitor { private constructor ( private onStringValue ) { super ( ) ; } public static visit ( value , onStringValue ) { const visitor = new GenericStringVisitor ( onStringValue ) ; value . accept ( visitor ) ; } public visitStringValue ( stringValue ) { this . onStringValue ( stringValue ) ; } }