2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
17 #ifndef incl_HPHP_TYPE_STRUCTURE_H
18 #define incl_HPHP_TYPE_STRUCTURE_H
28 /* Utility for representing full type information in the runtime. */
29 namespace TypeStructure
{
31 // These values are exposed to the user in
32 // hphp/runtime/ext/reflection/ext_reflection-TypeInfo.php
33 enum class Kind
: uint8_t {
47 T_typevar
= 13, // corresponds to user OF_GENERIC
50 // These values are only used after resolution in ext_reflection.cpp
56 /* TODO(7657500): the following kinds needs alias resolution, and
57 * are not exposed to the users. Could resolve to a class, enum,
58 * interface, or alias. */
64 String
toString(const ArrayData
* arr
);
66 ArrayData
* resolve(ArrayData
* arr
, const Class
* typeCstCls
);