File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/pyright-scip/src Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { ParseNode } from 'pyright-internal/parser/parseNodes' ;
2
2
import { Counter } from './lsif-typescript/Counter' ;
3
3
import {
4
+ descriptorString ,
4
5
metaDescriptor ,
5
6
methodDescriptor ,
6
7
packageDescriptor ,
@@ -74,7 +75,17 @@ export function makeMethod(parent: ScipSymbol, name: string): ScipSymbol {
74
75
}
75
76
76
77
export function makeType ( parent : ScipSymbol , name : string ) : ScipSymbol {
77
- return ScipSymbol . global ( parent , typeDescriptor ( name ) ) ;
78
+ const desc = typeDescriptor ( name ) ;
79
+ const descString = descriptorString ( desc ) ;
80
+ if ( descString . indexOf ( 'SuchNestedMuchWow' ) !== - 1 ) {
81
+ throw new Error (
82
+ 'Got problematic descriptor with owner: ' +
83
+ parent . value +
84
+ ', namespaces: ' +
85
+ JSON . stringify ( Object . fromEntries ( namespaces ) )
86
+ ) ;
87
+ }
88
+ return ScipSymbol . global ( parent , desc ) ;
78
89
}
79
90
80
91
export function makeTerm ( parent : ScipSymbol , name : string ) : ScipSymbol {
You can’t perform that action at this time.
0 commit comments