public override ClassMemberSyntax VisitConstructor(AdamantParser.ConstructorContext context) { var accessModifier = GetAccessModifier(context.modifier()); var name = Identifier(context.identifier()); var parameters = build.Parameters(context.parameterList()); var body = context.methodBody().statement().Select(s => s.Accept(build.Statement)); return(new ConstructorSyntax(accessModifier, name, parameters, body)); }