Skip to content

Commit 11ac090

Browse files
committed
Specialize
1 parent 772fdda commit 11ac090

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/TL_filerefs.tl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ getMessageOp flags:# peer:TypedOp id:TypedOp from_scheduled:flags.0?TypedOp = Ac
1414
pathPart flags:# constructor:string param:string flag_abort_if_empty:flags.0?true flag_fallback_if_empty:flags.1?TypedOp flag_passthrough:flags.2?true = PathPart;
1515

1616
path parts:Vector<PathPart> = Path;
17+
pathParent parts:Vector<PathPart> = Path;
1718

1819
// Typed constructors, the type is specified to simplify codegen,
1920
// but isn't strictly necessary as it can be inferred from the TypedOpOp.

src/file_ref_map.dat

0 Bytes
Binary file not shown.

tools/FileRefExtractor/FieldExtractorOp.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use AssertionError;
2222
use danog\MadelineProto\FileRefExtractor\BuildMode\Ast;
2323
use danog\MadelineProto\FileRefExtractor\Ops\CopyOp;
24+
use danog\MadelineProto\FileRefExtractor\Ops\ExtractFromParentOp;
2425
use Webmozart\Assert\Assert;
2526

2627
abstract readonly class FieldExtractorOp implements TypedOp
@@ -83,7 +84,7 @@ final protected function buildPath(TLContext $tl): array
8384
}
8485
$new[] = $newPart;
8586
}
86-
return ['_' => 'path', 'parts' => $new];
87+
return ['_' => $this instanceof ExtractFromParentOp ? 'pathParent': 'path', 'parts' => $new];
8788
}
8889
final public function getType(TLContext $tl): string
8990
{

0 commit comments

Comments
 (0)