return new ASTASMethod(def);
}
public static ASTASField newField(String name, Visibility visibility, String type) {
if (name.indexOf('.') != -1) {
throw new SyntaxException("field name must not contain '.'");
}
LinkedListTree decl = ASTUtils.newImaginaryAST(AS3Parser.VAR_DEF);
LinkedListTree annos = ASTUtils.newPlaceholderAST(AS3Parser.ANNOTATIONS);
decl.addChildWithTokens(annos);
decl.addChildWithTokens(ModifierUtils.toModifiers(visibility));