updated method call (#7642)

This commit is contained in:
TJKoury 2022-11-22 16:01:32 -05:00 committed by GitHub
parent bb9b9dad5f
commit eead6c6219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -387,8 +387,7 @@ class TsGenerator : public BaseGenerator {
return GenBBAccess() + ".__union_with_string" + arguments;
case BASE_TYPE_VECTOR: return GenGetter(type.VectorType(), arguments);
default: {
auto getter = GenBBAccess() + "." +
namer_.Method("read_" + GenType(type)) + arguments;
auto getter = GenBBAccess() + "." + "read" + GenType(type) + arguments;
if (type.base_type == BASE_TYPE_BOOL) { getter = "!!" + getter; }
return getter;
}