How to use the @theia/languages/lib/browser/typehierarchy/typehierarchy-protocol.TypeHierarchyDirection.Parents function in @theia/languages

To help you get started, we’ve selected a few @theia/languages examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse-theia / theia / packages / typehierarchy / src / browser / tree / typehierarchy-tree.ts View on Github external
export function is(node: TreeNode | undefined): node is RootNode {
            if (Node.is(node) && 'direction' in node) {
                // tslint:disable-next-line:no-any
                const { direction } = (node as any);
                return direction === TypeHierarchyDirection.Children || direction === TypeHierarchyDirection.Parents;
            }
            return false;
        }
github eclipse-theia / theia / packages / typehierarchy / src / browser / typehierarchy-contribution.ts View on Github external
            execute: () => this.openViewOrFlipHierarchyDirection(TypeHierarchyDirection.Parents),
            isEnabled: this.isEnabled.bind(this)