}
public static LinkedListTree newCatchClause(String var, String type) {
LinkedListTree tryStmt = ASTUtils.newAST(AS3Parser.CATCH, "catch");
tryStmt.appendToken(TokenBuilder.newSpace());
tryStmt.appendToken(TokenBuilder.newLParen());
tryStmt.addChildWithTokens(AS3FragmentParser.parseSimpleIdent(var));
if (type != null) {
tryStmt.addChildWithTokens(AS3FragmentParser.parseTypeSpec(type));
}
tryStmt.appendToken(TokenBuilder.newRParen());