File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4000,7 +4000,10 @@ export class PropertyPrototype extends DeclaredElement {
40004000 let nativeRange = Source . native . range ;
40014001 let typeNode = fieldDeclaration . type ;
40024002 let initializer = fieldDeclaration . initializer ;
4003- if ( ! typeNode ) typeNode = initializer ? Node . createInferredType ( initializer ) : Node . createOmittedType ( fieldDeclaration . name . range . atEnd )
4003+ if ( ! typeNode ) {
4004+ const defaultTypeNode = initializer ? Node . createInferredType ( initializer ) : Node . createOmittedType ( fieldDeclaration . name . range . atEnd ) ;
4005+ typeNode = defaultTypeNode ;
4006+ }
40044007 let getterDeclaration = new MethodDeclaration ( // get name(): type
40054008 fieldDeclaration . name ,
40064009 fieldDeclaration . decorators ,
You can’t perform that action at this time.
0 commit comments