public override IEnumerable <INode> VisitSetterDeclaration(TypescriptParser.SetterDeclarationContext context) { yield return(new SetterDeclaration( context, context.identifier().GetText(), VisitChildren(context))); }
public override void ExitSetterDeclaration(TypescriptParser.SetterDeclarationContext context) { if (context.formalParameterList().fixedParameters().fixedParameter().Length != 1) { errorListener.Errors.Add($"{context.GetPositionString()}: Setters must have exactly one parameter"); } }