public static CILTypeSpecification GetValue(ParseTreeNode node) { CILClassName className = null; CILType type = null; var classNameParseTreeNode = node.GetFirstChildWithGrammarName(GrammarNames.className); if (classNameParseTreeNode != null) { className = ClassNameParseTreeNodeHelper.GetClassName(classNameParseTreeNode); } var typeParseTreeNode = node.GetFirstChildWithGrammarName(GrammarNames.type); if (typeParseTreeNode != null) { type = TypeParseTreeNodeHelper.GetType(typeParseTreeNode); } return(new CILTypeSpecification { ClassName = className, Type = type }); }
public static CILType GetType(ParseTreeNode node) { var typeParseTreeNode = node.GetFirstChildWithGrammarName(GrammarNames.type); return(TypeParseTreeNodeHelper.GetType(typeParseTreeNode)); }