@@ -2,11 +2,12 @@ import {
2
2
AccessorDeclaration , addEmitFlags , AdditiveOperator , AdditiveOperatorOrHigher , AssertionLevel ,
3
3
AssignmentOperatorOrHigher , BinaryExpression , BinaryOperator , BinaryOperatorToken , BindingOrAssignmentElement ,
4
4
BindingOrAssignmentElementRestIndicator , BindingOrAssignmentElementTarget , BindingOrAssignmentPattern ,
5
- BitwiseOperator , BitwiseOperatorOrHigher , BooleanLiteral , CharacterCodes , CommaListExpression ,
5
+ BitwiseOperator , BitwiseOperatorOrHigher , Block , BooleanLiteral , CharacterCodes , CommaListExpression ,
6
6
compareStringsCaseSensitive , CompilerOptions , Debug , Declaration , EmitFlags , EmitHelperFactory , EmitHost ,
7
7
EmitResolver , EntityName , EqualityOperator , EqualityOperatorOrHigher , ExclamationToken , ExponentiationOperator ,
8
8
ExportDeclaration , Expression , ExpressionStatement , externalHelpersModuleNameText , first , firstOrUndefined ,
9
9
ForInitializer , GeneratedIdentifier , GeneratedIdentifierFlags , GeneratedNamePart , GeneratedPrivateIdentifier ,
10
+ GetAccessorDeclaration ,
10
11
getAllAccessorDeclarations , getEmitFlags , getEmitHelpers , getEmitModuleKind , getESModuleInterop ,
11
12
getExternalModuleName , getExternalModuleNameFromPath , getJSDocType , getJSDocTypeTag , getModifiers ,
12
13
getNamespaceDeclarationNode , getOrCreateEmitNode , getOriginalNode , getParseTreeNode ,
@@ -26,7 +27,7 @@ import {
26
27
NumericLiteral , ObjectLiteralElementLike , ObjectLiteralExpression , or , OuterExpression , OuterExpressionKinds ,
27
28
outFile , parseNodeFactory , PlusToken , PostfixUnaryExpression , PrefixUnaryExpression , PrivateIdentifier ,
28
29
PropertyAssignment , PropertyDeclaration , PropertyName , pushIfUnique , QuestionToken , ReadonlyKeyword ,
29
- RelationalOperator , RelationalOperatorOrHigher , setOriginalNode , setParent , setStartsOnNewLine , setTextRange ,
30
+ RelationalOperator , RelationalOperatorOrHigher , SetAccessorDeclaration , setOriginalNode , setParent , setStartsOnNewLine , setTextRange ,
30
31
ShiftOperator , ShiftOperatorOrHigher , ShorthandPropertyAssignment , some , SourceFile , Statement , StringLiteral ,
31
32
SyntaxKind , TextRange , ThisTypeNode , Token , TypeNode , TypeParameterDeclaration ,
32
33
} from "../_namespaces/ts" ;
@@ -185,7 +186,7 @@ export function createForOfBindingStatement(factory: NodeFactory, node: ForIniti
185
186
}
186
187
187
188
/** @internal */
188
- export function insertLeadingStatement ( factory : NodeFactory , dest : Statement , source : Statement ) {
189
+ export function insertLeadingStatement ( factory : NodeFactory , dest : Statement , source : Statement ) : Block {
189
190
if ( isBlock ( dest ) ) {
190
191
return factory . updateBlock ( dest , setTextRange ( factory . createNodeArray ( [ source , ...dest . statements ] ) , dest . statements ) ) ;
191
192
}
@@ -1456,7 +1457,7 @@ export function createAccessorPropertyBackingField(factory: NodeFactory, node: P
1456
1457
*
1457
1458
* @internal
1458
1459
*/
1459
- export function createAccessorPropertyGetRedirector ( factory : NodeFactory , node : PropertyDeclaration , modifiers : ModifiersArray | undefined , name : PropertyName ) {
1460
+ export function createAccessorPropertyGetRedirector ( factory : NodeFactory , node : PropertyDeclaration , modifiers : ModifiersArray | undefined , name : PropertyName ) : GetAccessorDeclaration {
1460
1461
return factory . createGetAccessorDeclaration (
1461
1462
modifiers ,
1462
1463
name ,
@@ -1478,7 +1479,7 @@ export function createAccessorPropertyGetRedirector(factory: NodeFactory, node:
1478
1479
*
1479
1480
* @internal
1480
1481
*/
1481
- export function createAccessorPropertySetRedirector ( factory : NodeFactory , node : PropertyDeclaration , modifiers : ModifiersArray | undefined , name : PropertyName ) {
1482
+ export function createAccessorPropertySetRedirector ( factory : NodeFactory , node : PropertyDeclaration , modifiers : ModifiersArray | undefined , name : PropertyName ) : SetAccessorDeclaration {
1482
1483
return factory . createSetAccessorDeclaration (
1483
1484
modifiers ,
1484
1485
name ,
0 commit comments