void AddMethod(CommonTree tree) { var functionDefinition = new JavaScriptFunctionDefinition(ast, tree); functionDefinition.AddMethod(compilationUnit.GlobalClass); }