| 680 | | def _transformToPostCallExprOnType(dotNode, definition as IType?) |
| 681 | | # for Foo.Bar() where Bar is a box/type |
| 682 | | # Change to a PostCallExpr on the type 'Foo.Bar' |
| 683 | | |
| 684 | | # Roll up Foo.Bar.Baz() into one PostCallExpr |
| 685 | | transformTarget = dotNode |
| 686 | | while transformTarget.superNode inherits DotExpr |
| 687 | | transformTarget = transformTarget.superNode to DotExpr |
| 688 | | |
| 689 | | postCall = PostCallExpr(.token, TypeExpr(.token, definition), .args).bindImp |
| 690 | | _type = postCall.type to IType |
| | 680 | def _transformToPostCallExprOnType(definition as IType?) |
| | 681 | transformTarget = .superNode to DotExpr |
| | 682 | postCall = PostCallExpr(.token, TypeExpr(.token, definition), .args).bindAll to PostCallExpr |
| | 683 | _type = postCall.type |