Skip to content

Commit c6a0e57

Browse files
committed
Store skipped flags
1 parent bacf0d9 commit c6a0e57

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/TL_filerefs.tl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ origin#72cc7c04 flags:# predicate:string is_constructor:flags.0?true action:Acti
77
typedOpArg#3a2930c2 key:string value:TypedOp = TypedOpArg;
88

99
// Actions
10-
callOp#59aef5ce method:string args:Vector<TypedOpArg> stored_constructor:string = ActionOp;
11-
getMessageOp#4f27329e flags:# peer:TypedOp id:TypedOp from_scheduled:flags.0?TypedOp stored_constructor:string = ActionOp;
10+
callOp#95a107ea method:string args:Vector<TypedOpArg> stored_constructor:string skipped_flags:Vector<string> = ActionOp;
11+
getMessageOp#defc2466 flags:# peer:TypedOp id:TypedOp from_scheduled:flags.0?TypedOp stored_constructor:string skipped_flags:Vector<string> = ActionOp;
1212
noOp#c4d8df73 why:string = ActionOp;
1313

1414
// Field extraction path

src/file_ref_map.dat

436 Bytes
Binary file not shown.

tools/FileRefExtractor/BuildMode/Ast.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ public function addNode(TLContext $ctx, ?array $action = null, ?string $why = nu
128128
$out['parent_is_constructor'] = $ctx->tl->isConstructor($this->needsParent);
129129
}
130130
if ($action !== null) {
131-
$out['action'] = $action;
132-
133131
Assert::keyExists($action, 'stored_constructor');
134132

135133
$constructor = $action['stored_constructor'];
134+
$action['skipped_flags'] = [];
136135

137136
$names = $this->storedNames;
138137
$flags = [];
@@ -154,6 +153,8 @@ public function addNode(TLContext $ctx, ?array $action = null, ?string $why = nu
154153
if (str_starts_with($type, 'flags.')) {
155154
if (isset($flags[$name])) {
156155
unset($flags[$name], $names[$name]);
156+
} else {
157+
$action['skipped_flags'][]= $name;
157158
}
158159
}
159160
}
@@ -178,6 +179,8 @@ public function addNode(TLContext $ctx, ?array $action = null, ?string $why = nu
178179
$this->outputSchema[$constructor] = $names;
179180
}
180181

182+
$out['action'] = $action;
183+
181184
$this->storedFlags = 0;
182185
$this->stored = [];
183186
$this->storedNames = [];

0 commit comments

Comments
 (0)