refactor(ivy): simplify walkTNodeTree
method for readability (#31065)
PR Close #31065
This commit is contained in:

committed by
Andrew Kushnir

parent
4bbf16e654
commit
994264c0ba
@ -25,6 +25,7 @@ export function assertNodeOfPossibleTypes(tNode: TNode, ...types: TNodeType[]) {
|
||||
function typeName(type: TNodeType): string {
|
||||
if (type == TNodeType.Projection) return 'Projection';
|
||||
if (type == TNodeType.Container) return 'Container';
|
||||
if (type == TNodeType.IcuContainer) return 'IcuContainer';
|
||||
if (type == TNodeType.View) return 'View';
|
||||
if (type == TNodeType.Element) return 'Element';
|
||||
if (type == TNodeType.ElementContainer) return 'ElementContainer';
|
||||
|
Reference in New Issue
Block a user