public String getTypeName() { LinkedListTree type = ASTUtils.findChildByType(ast, AS3Parser.TYPE_SPEC); if (type == null) { return null; } final LinkedListTree typeAST = type.getFirstChild(); if (typeAST.getType() == AS3Parser.STAR) { return "*"; } return ASTUtils.identText(typeAST); }
private LinkedListTree getPkgNode() { return ASTUtils.findChildByType(ast, AS3Parser.PACKAGE); }
/** * Finds the first child of the given AST node of type ARGUMENTS * * @return the matching AST node, or null if none is found */ public static LinkedListTree findArgs(LinkedListTree parent) { return ASTUtils.findChildByType(parent, AS3Parser.ARGUMENTS); }
private LinkedListTree block() { return ASTUtils.findChildByType(ast, AS3Parser.BLOCK); }