private void InferType(MethodSignature node)
 {
     if (node.Type == null)
     {
         node.SetType(NodeHelper.CreateNode(NodeKind.VoidKeyword));
     }
 }
        private List <Node> Separate(MethodSignature method)
        {
            List <Node> newMembers = new List <Node>();

            MethodSignature setMethod = NodeHelper.CreateNode(method.TsNode) as MethodSignature;

            (setMethod.Parameters[0] as Parameter).SetQuestionToken(null);
            setMethod.SetType(NodeHelper.CreateNode(NodeKind.VoidKeyword));
            newMembers.Add(setMethod);

            MethodSignature getMethod = NodeHelper.CreateNode(method.TsNode) as MethodSignature;

            getMethod.Parameters.Clear();
            newMembers.Add(getMethod);

            return(newMembers);
        }