diff options
Diffstat (limited to 'deps/v8/src/torque/type-visitor.h')
-rw-r--r-- | deps/v8/src/torque/type-visitor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/src/torque/type-visitor.h b/deps/v8/src/torque/type-visitor.h index 6bb2bba499d..205e842cc75 100644 --- a/deps/v8/src/torque/type-visitor.h +++ b/deps/v8/src/torque/type-visitor.h @@ -32,7 +32,9 @@ class TypeVisitor { static void VisitStructMethods(StructType* struct_type, const StructDeclaration* struct_declaration); static Signature MakeSignature(const CallableDeclaration* declaration); - static const StructType* ComputeTypeForStructExpression( + // Can return either StructType or BitFieldStructType, since they can both be + // used in struct expressions like `MyStruct{ a: 0, b: foo }` + static const Type* ComputeTypeForStructExpression( TypeExpression* type_expression, const std::vector<const Type*>& term_argument_types); |