Home
last modified time | relevance | path

Searched refs:variableDeclaration (Results 1 – 25 of 34) sorted by relevance

12

/third_party/typescript/src/services/refactors/
DconvertArrowFunctionOrFunctionExpression.ts37 readonly variableDeclaration: VariableDeclaration; property
171 … const variableDeclaration = isVariableDeclaration(parent) ? parent : first(parent.declarations); constant
172 const initializer = variableDeclaration.initializer;
193 const variableDeclaration = func.parent; constant
194 …if (!isVariableDeclaration(variableDeclaration) || !isVariableDeclarationInVariableStatement(varia…
196 const variableDeclarationList = variableDeclaration.parent;
198 …clarationList) || !isVariableStatement(statement) || !isIdentifier(variableDeclaration.name)) retu…
200 …return { variableDeclaration, variableDeclarationList, statement, name: variableDeclaration.name };
214 const { variableDeclaration, variableDeclarationList, statement, name } = variableInfo; constant
217 …const modifiersFlags = (getCombinedModifierFlags(variableDeclaration) & ModifierFlags.Export) | ge…
[all …]
DextractSymbol.ts1015 const variableDeclaration = exposedVariableDeclarations[0]; constant
1019 …SynthesizedDeepClone(variableDeclaration.name), /*exclamationToken*/ undefined, /*type*/ getSynthe…
1020 variableDeclaration.parent.flags)));
1029 for (const variableDeclaration of exposedVariableDeclarations) { constant
1033 /*name*/ getSynthesizedDeepClone(variableDeclaration.name)));
1037 … checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(variableDeclaration)),
1043 /*name*/ variableDeclaration.symbol.name,
1046 sawExplicitType = sawExplicitType || variableDeclaration.type !== undefined;
1047 commonNodeFlags = commonNodeFlags & variableDeclaration.parent.flags;
1069 for (const variableDeclaration of exposedVariableDeclarations) { constant
[all …]
DconvertParamsToDestructuredObject.ts576 const variableDeclaration = constructorDeclaration.parent.parent; constant
578 if (className) return [className, variableDeclaration.name];
579 return [variableDeclaration.name];
600 const variableDeclaration = functionDeclaration.parent.parent; constant
601 return [variableDeclaration.name, ctrKeyword];
/third_party/typescript/src/services/
Dbreakpoints.ts380 …function textSpanFromVariableDeclaration(variableDeclaration: VariableDeclaration | PropertyDeclar…
381 … (isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations…
383 …turn textSpan(findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent)!…
387 return textSpan(variableDeclaration);
391 …function spanInVariableDeclaration(variableDeclaration: VariableDeclaration | PropertyDeclaration …
393 if (variableDeclaration.parent.parent.kind === SyntaxKind.ForInStatement) {
394 return spanInNode(variableDeclaration.parent.parent);
397 const parent = variableDeclaration.parent;
399 if (isBindingPattern(variableDeclaration.name)) {
400 return spanInBindingPattern(variableDeclaration.name);
[all …]
Dcompletions.ts1418 const variableDeclaration = getVariableDeclaration(location); constant
1505 if (variableDeclaration && symbol.valueDeclaration === variableDeclaration) {
4529 const variableDeclaration = findAncestor(property, node => constant
4534 return variableDeclaration as VariableDeclaration | undefined;
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRecordConstantPrecision.cpp104 TIntermDeclaration *variableDeclaration = nullptr; in visitConstantUnion() local
105 TVariable *variable = DeclareTempVariable(mSymbolTable, node, EvqConst, &variableDeclaration); in visitConstantUnion()
106 insertStatementInParentBlock(variableDeclaration); in visitConstantUnion()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DRewriteAtomicFunctionExpressions.cpp106 TIntermDeclaration *variableDeclaration; in getTempVariable() local
108 DeclareTempVariable(mSymbolTable, type, EvqTemporary, &variableDeclaration); in getTempVariable()
109 mTempVariables.push_back(variableDeclaration); in getTempVariable()
DRewriteExpressionsWithShaderStorageBlock.cpp142 TIntermDeclaration *variableDeclaration; in insertInitStatementAndReturnTempSymbol() local
144 DeclareTempVariable(mSymbolTable, node, EvqTemporary, &variableDeclaration); in insertInitStatementAndReturnTempSymbol()
146 insertions->push_back(variableDeclaration); in insertInitStatementAndReturnTempSymbol()
/third_party/typescript/src/compiler/transformers/
Des2019.ts28 if (!node.variableDeclaration) {
Des2018.ts510 if (node.variableDeclaration &&
511 isBindingPattern(node.variableDeclaration.name) &&
512 … node.variableDeclaration.name.transformFlags & TransformFlags.ContainsObjectRestOrSpread) {
513 const name = factory.getGeneratedNameForNode(node.variableDeclaration.name);
514 … updatedDecl = factory.updateVariableDeclaration(node.variableDeclaration, node.variableDeclaratio…
525 …factory.updateVariableDeclaration(node.variableDeclaration, name, /*exclamationToken*/ undefined, …
Des2015.ts3587 …Debug.assert(!!node.variableDeclaration, "Catch clause variable should always be present when down…
3588 if (isBindingPattern(node.variableDeclaration.name)) {
3591 setTextRange(newVariableDeclaration, node.variableDeclaration);
3593 node.variableDeclaration,
3600 setTextRange(list, node.variableDeclaration);
Des2017.ts191 recordDeclarationName(node.variableDeclaration!, catchClauseNames); // TODO: GH#18217
Dgenerators.ts1926 beginCatchBlock(node.catchClause.variableDeclaration!); // TODO: GH#18217
/third_party/typescript/src/compiler/factory/
DnodeFactory.ts5269 …function createCatchClause(variableDeclaration: string | BindingName | VariableDeclaration | undef…
5271 …if (typeof variableDeclaration === "string" || variableDeclaration && !isVariableDeclaration(varia…
5272 variableDeclaration = createVariableDeclaration(
5273 variableDeclaration,
5279 node.variableDeclaration = variableDeclaration;
5282 propagateChildFlags(node.variableDeclaration) |
5284 if (!variableDeclaration) node.transformFlags |= TransformFlags.ContainsES2019;
5289 …function updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined…
5290 return node.variableDeclaration !== variableDeclaration
5292 ? update(createCatchClause(variableDeclaration, block), node)
/third_party/typescript/src/linter/ArkTSLinter_1_0/
DTypeScriptLinter.ts1133 if (tsCatch.variableDeclaration && tsCatch.variableDeclaration.type) {
/third_party/typescript/src/linter/ArkTSLinter_1_1/
DTypeScriptLinter.ts1170 if (tsCatch.variableDeclaration && tsCatch.variableDeclaration.type) {
DUtils.ts105 const catchClauseNode = (nodeOrComment as CatchClause).variableDeclaration;
/third_party/typescript/src/compiler/transformers/module/
Dsystem.ts1449 node.variableDeclaration,
/third_party/typescript/src/compiler/
Demitter.ts3782 if (node.variableDeclaration) {
3784 emit(node.variableDeclaration);
3785 …emitTokenWithComment(SyntaxKind.CloseParenToken, node.variableDeclaration.end, writePunctuation, n…
5105 generateNames((node as CatchClause).variableDeclaration);
Dbinder.ts2250 if (inStrictMode && node.variableDeclaration) {
2251 checkStrictModeEvalOrArguments(node, node.variableDeclaration.name);
Dparser.ts500 return visitNode(cbNode, node.variableDeclaration) ||
6787 let variableDeclaration;
6789 variableDeclaration = parseVariableDeclaration();
6794 variableDeclaration = undefined;
6798 return finishNode(factory.createCatchClause(variableDeclaration, block), pos);
DvisitorPublic.ts1294 nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration),
/third_party/typescript/lib/
Dtypescript.d.ts1599 readonly variableDeclaration?: VariableDeclaration; property
3990 …createCatchClause(variableDeclaration: string | BindingName | VariableDeclaration | undefined, blo…
3991 …updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: …
8095 …const createCatchClause: (variableDeclaration: string | VariableDeclaration | BindingName | undefi…
8097 …const updateCatchClause: (node: CatchClause, variableDeclaration: VariableDeclaration | undefined,…
DtypescriptServices.d.ts1599 readonly variableDeclaration?: VariableDeclaration; property
3990 …createCatchClause(variableDeclaration: string | BindingName | VariableDeclaration | undefined, blo…
3991 …updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: …
8095 …const createCatchClause: (variableDeclaration: string | VariableDeclaration | BindingName | undefi…
8097 …const updateCatchClause: (node: CatchClause, variableDeclaration: VariableDeclaration | undefined,…
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts1599 readonly variableDeclaration?: VariableDeclaration; property
3990 …createCatchClause(variableDeclaration: string | BindingName | VariableDeclaration | undefined, blo…
3991 …updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: …
8095 …const createCatchClause: (variableDeclaration: string | VariableDeclaration | BindingName | undefi…
8097 …const updateCatchClause: (node: CatchClause, variableDeclaration: VariableDeclaration | undefined,…

12