File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ getMessageOp flags:# peer:TypedOp id:TypedOp from_scheduled:flags.0?TypedOp = Ac
1414pathPart 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
1616path 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.
Original file line number Diff line number Diff line change 2121use AssertionError ;
2222use danog \MadelineProto \FileRefExtractor \BuildMode \Ast ;
2323use danog \MadelineProto \FileRefExtractor \Ops \CopyOp ;
24+ use danog \MadelineProto \FileRefExtractor \Ops \ExtractFromParentOp ;
2425use Webmozart \Assert \Assert ;
2526
2627abstract 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 {
You can’t perform that action at this time.
0 commit comments