Lines Matching refs:declarable
69 static x* cast(Declarable* declarable) { \
70 DCHECK(declarable->Is##x()); \
71 return static_cast<x*>(declarable); \
73 static const x* cast(const Declarable* declarable) { \
74 DCHECK(declarable->Is##x()); \
75 return static_cast<const x*>(declarable); \
78 static x* DynamicCast(Declarable* declarable) { \
79 if (!declarable) return nullptr; \
80 if (!declarable->Is##x()) return nullptr; \
81 return static_cast<x*>(declarable); \
83 static const x* DynamicCast(const Declarable* declarable) { \
84 if (!declarable) return nullptr; \
85 if (!declarable->Is##x()) return nullptr; \
86 return static_cast<const x*>(declarable); \
207 static Callable* cast(Declarable* declarable) { in cast() argument
208 assert(declarable->IsMacro() || declarable->IsBuiltin() || in cast()
209 declarable->IsRuntimeFunction()); in cast()
210 return static_cast<Callable*>(declarable); in cast()
212 static const Callable* cast(const Declarable* declarable) { in cast() argument
213 assert(declarable->IsMacro() || declarable->IsBuiltin() || in cast()
214 declarable->IsRuntimeFunction()); in cast()
215 return static_cast<const Callable*>(declarable); in cast()