private string getTypeNameForVariableDeclaration( CSTVariableDeclarationCS variableDecl) { if (variableDecl.getTypeNodeCS() != null) { return(variableDecl.getTypeNodeCS() .getName()); } else { return(""); } }
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); }