public void ReturnFromValue(AstNode node) { AstNode tempNode = node; int count = 0; SimpleDataType = SemanticChecker.strToDataType(tempNode.Text); while (tempNode.ChildCount > 0) { count++; tempNode = (AstNode)tempNode.GetChild(0); } ArrayCount = count; }
public void ReturnFromType(AstNode node) { AstNode tempNode = node; int count = 0; while (tempNode.ChildCount > 0) { count++; tempNode = (AstNode)tempNode.GetChild(0); } ArrayCount = count - 1; alength = Convert.ToInt32(node.GetChild(1).Text); SimpleDataType = SemanticChecker.strToDataType(tempNode.Text); //return null; }