mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 20:48:59 +00:00
updated method call (#7642)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user