Пример #1
0
 private string getTypeNameForVariableDeclaration(
     CSTVariableDeclarationCS variableDecl)
 {
     if (variableDecl.getTypeNodeCS() != null)
     {
         return(variableDecl.getTypeNodeCS()
                .getName());
     }
     else
     {
         return("");
     }
 }
Пример #2
0
        public override List <object> getAllSimpleTypesNodesCS()
        {
            List <object> simpleTypes = new List <object>();

            for (int i = 0; i < variableDeclarationNodesCS.Count; i++)
            {
                CSTVariableDeclarationCS variableDecl = getVariableDeclaration(i);

                if (variableDecl.getTypeNodeCS() != null)
                {
                    simpleTypes.AddRange(variableDecl.getTypeNodeCS().getAllSimpleTypesNodesCS());
                }
            }

            return(simpleTypes);
        }