Пример #1
0
 private void getTuplePartName(
     StringBuilder result,
     CSTVariableDeclarationCS variableDecl)
 {
     result.Append(variableDecl.getNameNodeCS());
     result.Append(":");
     result.Append(getTypeNameForVariableDeclaration(variableDecl));
 }
Пример #2
0
 private string getTypeNameForVariableDeclaration(
     CSTVariableDeclarationCS variableDecl)
 {
     if (variableDecl.getTypeNodeCS() != null)
     {
         return(variableDecl.getTypeNodeCS()
                .getName());
     }
     else
     {
         return("");
     }
 }
Пример #3
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);
        }