From 59d3f65ff4b828456c056388b91a879d2a25e31c Mon Sep 17 00:00:00 2001 From: Xiao Shi Date: Wed, 29 Jul 2015 16:36:31 -0700 Subject: [PATCH] remove TypeStructure typedefs in hhvm hhi Summary: In preparation for typechecker changes, add type_shape as TypeStructure so that the runtime has knowledge of the type_shape type. However, currently typedefs don't work in hhvm, hence the plan is to add these to www.hhi when the time is right or when the issue gets fixed. Reviewed By: @paulbiss Differential Revision: D2292376 --- hphp/hack/hhi/typestructure.hhi | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/hphp/hack/hhi/typestructure.hhi b/hphp/hack/hhi/typestructure.hhi index fce3bfcd422..8fe11bac31a 100644 --- a/hphp/hack/hhi/typestructure.hhi +++ b/hphp/hack/hhi/typestructure.hhi @@ -35,31 +35,3 @@ enum TypeStructureKind: int { OF_TRAIT = 0; OF_ENUM = 0; } - -/* - * Exposing the TypeStructure shapes to users. To avoid cyclic definition of - * shapes, we define UnknownTypeStructure to be the subtype. - */ -newtype UnknownTypeStructure = shape( - 'nullable' => ?bool, - 'kind' => TypeStructureKind, -); - -newtype TypeStructure = shape( - 'nullable' => ?bool, - 'kind' => TypeStructureKind, - - // for tuples - 'elem_types' => ?array, - // for functions - 'param_types' => ?array, - 'return_type' => ?UnknownTypeStructure, - // for arrays, classes - 'generic_types' => ?array, - // for shapes - 'fields' => ?array, - // classname for classes, interfaces, enums, or traits - 'classname' => ?string, - // name for generics (type variables) - 'name' => ?string, -); -- 2.11.4.GIT