Beispiel #1
0
 public override IEnumerable <INode> VisitSetterDeclaration(TypescriptParser.SetterDeclarationContext context)
 {
     yield return(new SetterDeclaration(
                      context,
                      context.identifier().GetText(),
                      VisitChildren(context)));
 }
Beispiel #2
0
 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");
     }
 }