refactor(ivy): simplify walkTNodeTree method for readability (#31065)

PR Close #31065
This commit is contained in:
Misko Hevery
2019-06-07 20:46:11 -07:00
committed by Andrew Kushnir
parent 4bbf16e654
commit 994264c0ba
11 changed files with 302 additions and 325 deletions

View File

@ -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';