Remove namespace Collection and make CollectionType an enum class
commit71a3bd0a2d5e637ce71e9e4f323297c55aa1bb64
authorEdwin Smith <smith@fb.com>
Mon, 30 Mar 2015 19:50:12 +0000 (30 12:50 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 30 Mar 2015 20:30:33 +0000 (30 13:30 -0700)
tree3ee6b2faf1fc27074aba613b554e06dc1cb5d811
parent3017e4ffd2528f59456e4b32213d0b973dcbbf5f
Remove namespace Collection and make CollectionType an enum class

Summary: The namespace and non-class enum were being used to do what enum-class
does as of C++11, so just do it that way. Renamed a few other functions
to more sensible names.

Reviewed By: @jdelong

Differential Revision: D1951449
24 files changed:
hphp/compiler/analysis/emitter.cpp
hphp/compiler/expression/binary_op_expression.cpp
hphp/compiler/expression/expression_list.cpp
hphp/compiler/expression/expression_list.h
hphp/hhbbc/class-util.cpp
hphp/hhbbc/class-util.h
hphp/hhbbc/interp.cpp
hphp/runtime/base/array-iterator.cpp
hphp/runtime/base/array-iterator.h
hphp/runtime/base/header-kind.h
hphp/runtime/base/object-data-inl.h
hphp/runtime/base/object-data.h
hphp/runtime/base/types.h
hphp/runtime/ext/array/ext_array.cpp
hphp/runtime/ext/array/ext_array_idl.cpp
hphp/runtime/ext/asio/await_all_wait_handle.cpp
hphp/runtime/ext/asio/gen_map_wait_handle.cpp
hphp/runtime/ext/asio/gen_vector_wait_handle.cpp
hphp/runtime/ext/ext_collections.cpp
hphp/runtime/ext/ext_collections.h
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/class.cpp
hphp/runtime/vm/jit/translator-runtime.cpp
hphp/runtime/vm/jit/translator-runtime.h