You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: misc/codegen/templates/ql_parent.mustache
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,12 @@ private module Impl {
23
23
{{! for single and optional properties it adds 1 (regardless of whether the optional property exists) }}
24
24
{{! for repeated it adds 1 + the maximum index (which works for repeated optional as well) }}
25
25
and
26
-
n{{singular}} = n{{prev}} + 1{{#is_repeated}}+ max(int i | i = -1 or exists(e.get{{#type_is_hideable}}Immediate{{/type_is_hideable}}{{singular}}(i)) | i){{/is_repeated}}
26
+
{{#type_is_hideable}}
27
+
n{{singular}} = n{{prev}} + 1{{#is_repeated}}+ max(int i | i = -1 or exists(e.getImmediate{{singular}}(i)) | i){{/is_repeated}}
0 commit comments