Exemplo n.º 1
0
        public override object Visit(DeclarationNode node)
        {
            var declarationExpression = node.Parent as DeclarationExpression;

            PrintTypeReference(node.TypeReference, declarationExpression != null ? declarationExpression.TypeReference : null, node.Name);

            if (node.InitializerExpression != null)
            {
                PrintSpace();
                Print(Tokens.Assign);
                PrintSpace();

                node.InitializerExpression.AcceptVisitor(this);
            }

            return(null);
        }
Exemplo n.º 2
0
 public void AddParameter(DeclarationNode declarationNode)
 {
     _parameters.Add(SetParent(declarationNode));
 }
Exemplo n.º 3
0
 public void AddDeclarationNode(DeclarationNode declarationNode)
 {
     _declarations.Add(SetParent(declarationNode));
 }