summaryrefslogtreecommitdiff
path: root/src/node_dir.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-11-18 14:49:56 +0100
committergengjiawen <technicalcute@gmail.com>2019-11-30 08:51:06 +0000
commit52a3e3560484ec3ad4479ef80d829f7c99d39e80 (patch)
tree550033e4de5f83add146bfccec15bd6dc70a2f9c /src/node_dir.h
parent6c4cf862d0f17be7a4113d720567d3ce8f2d6fac (diff)
downloadnode-new-52a3e3560484ec3ad4479ef80d829f7c99d39e80.tar.gz
src: clean up node_file.h
- Move inline functions into an `-inl.h` file - Move override function definitions into `.cc` files - Remove `using` statements from header files - Make data fields of classes private - Mark classes at the end of hierarchies as `final` This is also partially being done in an attempt to avoid a particular internal compiler error, see https://github.com/nodejs/node/pull/30475#issuecomment-554740850 for details. PR-URL: https://github.com/nodejs/node/pull/30530 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_dir.h')
-rw-r--r--src/node_dir.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/node_dir.h b/src/node_dir.h
index ae6d0eb170..caef7a5d30 100644
--- a/src/node_dir.h
+++ b/src/node_dir.h
@@ -4,8 +4,6 @@
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include "node_file.h"
-#include "node.h"
-#include "req_wrap-inl.h"
namespace node {
@@ -20,16 +18,13 @@ class DirHandle : public AsyncWrap {
~DirHandle() override;
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Open(const v8::FunctionCallbackInfo<Value>& args);
- static void Read(const v8::FunctionCallbackInfo<Value>& args);
- static void Close(const v8::FunctionCallbackInfo<Value>& args);
+ static void Open(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void Read(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void Close(const v8::FunctionCallbackInfo<v8::Value>& args);
inline uv_dir_t* dir() { return dir_; }
- void MemoryInfo(MemoryTracker* tracker) const override {
- tracker->TrackFieldWithSize("dir", sizeof(*dir_));
- }
-
+ void MemoryInfo(MemoryTracker* tracker) const override;
SET_MEMORY_INFO_NAME(DirHandle)
SET_SELF_SIZE(DirHandle)