Commits

flie...@gmail.com@3b770cb8-f9e6-11dd-ac5b-dfceb64ead24  committed 1b15ab1

follow v8 to rename Variable::Mode as VariableMode

  • Participants
  • Parent commits 0513220

Comments (0)

Files changed (2)

     .def("parameter", &CAstScope::GetParameter, (py::args("index")))
     ;
 
-  py::enum_<v8i::Variable::Mode>("AstVariableMode")
-    .value("var", v8i::Variable::VAR)
-    .value("const", v8i::Variable::CONST)
-    .value("dynamic", v8i::Variable::DYNAMIC)
-    .value("global", v8i::Variable::DYNAMIC_GLOBAL)
-    .value("local", v8i::Variable::DYNAMIC_LOCAL)
-    .value("internal", v8i::Variable::INTERNAL)
-    .value("temporary", v8i::Variable::TEMPORARY)
+  py::enum_<v8i::VariableMode>("AstVariableMode")
+    .value("var", v8i::VAR)
+    .value("const", v8i::CONST)
+    .value("let", v8i::LET)
+    .value("dynamic", v8i::DYNAMIC)
+    .value("global", v8i::DYNAMIC_GLOBAL)
+    .value("local", v8i::DYNAMIC_LOCAL)
+    .value("internal", v8i::INTERNAL)
+    .value("temporary", v8i::TEMPORARY)
     ;
 
   py::class_<CAstVariable>("AstVariable", py::no_init)
 
   CAstScope scope(void) const { return CAstScope(m_var->scope()); }
   py::object name(void) const { return to_python(m_var->name()); }
-  v8i::Variable::Mode mode(void) const { return m_var->mode(); }
+  v8i::VariableMode mode(void) const { return m_var->mode(); }
 
   bool is_global(void) const { return m_var->is_global(); }
   bool is_this(void) const { return m_var->is_this(); }
   CAstDeclaration(v8i::Declaration *decl) : CAstNode(decl) {}
 
   CAstVariableProxy GetProxy(void) const;
-  v8i::Variable::Mode GetMode(void) const { return as<v8i::Declaration>()->mode(); }
+  v8i::VariableMode GetMode(void) const { return as<v8i::Declaration>()->mode(); }
   py::object GetFunction(void) const;
 };