public CSTIterateExpCS(
     List <object> iterators,
     CSTVariableDeclarationCS result,
     CSTOclExpressionCS bodyExpression)
 {
     this.iterators      = iterators;
     this.result         = result;
     this.bodyExpression = bodyExpression;
 }
Exemple #2
0
        protected VariableDeclaration getVariableDeclaration(String literal)
        {
            CSTNode node = parseOK(literal, this.getCurrentMethodName());

            Assert.IsTrue(node is CSTVariableDeclarationCS);
            CSTVariableDeclarationCS variable = (CSTVariableDeclarationCS)node;

            return((VariableDeclaration)variable.getAst());
        }
        private string getParameterTypeName(int index)
        {
            CSTVariableDeclarationCS parameter = (CSTVariableDeclarationCS)parametersNodesCS[index];

            return(parameter.getTypeNodeCS().getName());
        }
Exemple #4
0
 /* (non-Javadoc)
  * @see br.ufrj.cos.lens.odyssey.tools.psw.parser.cst.CSTVisitor#visitVariableDeclaration(br.ufrj.cos.lens.odyssey.tools.psw.parser.cst.type.CSTVariableDeclarationCS)
  */
 public override void visitVariableDeclaration(CSTVariableDeclarationCS variableDeclarationCstNode)
 {
     base.visitVariableDeclaration(variableDeclarationCstNode);
 }