/third_party/typescript/src/services/codefixes/ |
D | generateAccessors.ts | 13 readonly declaration: AcceptedDeclaration; property 25 …tic, isReadonly, fieldName, accessorName, originalName, type, container, declaration } = fieldInfo; constant 29 suppressLeadingAndTrailingTrivia(declaration); 35 const modifierFlags = getEffectiveModifierFlags(declaration); 45 if (canHaveDecorators(declaration)) { 46 fieldModifiers = concatenate(getDecorators(declaration), fieldModifiers); 50 updateFieldDeclaration(changeTracker, file, declaration, type, fieldName, fieldModifiers); 54 insertAccessor(changeTracker, file, getAccessor, declaration, container); 66 insertAccessor(changeTracker, file, setAccessor, declaration, container); 110 const declaration = findAncestor(node.parent, isAcceptedDeclaration); constant [all …]
|
D | returnValueCorrect.ts | 20 declaration: FunctionLikeDeclaration; property 28 declaration: ArrowFunction; property 47 …isArrowFunction(info.declaration) ? getActionForFixRemoveBracesFromArrowFunctionBody(context, info… 50 … return [getActionForfixWrapTheBlockWithParen(context, info.declaration, info.expression)]; 62 if (!isArrowFunction(info.declaration)) return undefined; 63 …removeBlockBodyBrace(changes, diag.file, info.declaration, info.expression, info.commentSource, /*… 66 if (!isArrowFunction(info.declaration)) return undefined; 67 wrapBlockWithParen(changes, diag.file, info.declaration, info.expression); 82 …function getFixInfo(checker: TypeChecker, declaration: FunctionLikeDeclaration, expectType: Type, … 83 …if (!declaration.body || !isBlock(declaration.body) || length(declaration.body.statements) !== 1) … [all …]
|
D | fixAddMissingConstraint.ts | 35 if (addToSeen(seen, getNodeId(info.declaration))) { 47 declaration: TypeParameterDeclaration; property 58 …let declaration = findAncestorMatchingSpan(related.file, createTextSpan(related.start, related.len… 59 if (declaration === undefined) return; 61 if (isIdentifier(declaration) && isTypeParameterDeclaration(declaration.parent)) { 62 declaration = declaration.parent; 65 if (isTypeParameterDeclaration(declaration)) { 67 if (isMappedTypeNode(declaration.parent)) return; 73 return { constraint, declaration, token }; 79 const { declaration, constraint } = info; constant [all …]
|
/third_party/weex-loader/deps/weex-styler/ |
D | index.js | 94 let declaration = rule.declarations[i] 95 if (declaration.property === 'flex') { 96 let values = declaration.value.split(/\s+/) 99 checkFlexOne(rule, ruleLog, declaration, values, i) 101 checkFlexTwo(rule, ruleLog, declaration, values, i) 103 checkFlexThree(rule, ruleLog, declaration, values, i) 106 line: declaration.position.start.line, 107 column: declaration.position.start.column, 108 reason: 'ERROR: Value `' + declaration.value + '` of the `' + 109 declaration.property + '` attribute is incorrect.' [all …]
|
/third_party/typescript/src/services/ |
D | navigateTo.ts | 8 readonly declaration: Declaration; property 41 for (const declaration of declarations) { constant 42 if (!shouldKeepItem(declaration, checker)) continue; 46 const fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name); 48 …e, fileName, matchKind: fullMatch.kind, isCaseSensitive: fullMatch.isCaseSensitive, declaration }); 52 …sh({ name, fileName, matchKind: match.kind, isCaseSensitive: match.isCaseSensitive, declaration }); 57 function shouldKeepItem(declaration: Declaration, checker: TypeChecker): boolean { 58 switch (declaration.kind) { 62 …const importer = checker.getSymbolAtLocation((declaration as ImportClause | ImportSpecifier | Impo… 70 …function tryAddSingleDeclarationName(declaration: Declaration, containers: Push<string>): boolean { [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | commonJSAliasedExport.types | 3 >funky : (declaration: any) => boolean 15 >funky : (declaration: any) => boolean 26 function funky(declaration) { 27 >funky : (declaration: any) => boolean 28 >declaration : any 34 >module.exports = donkey : { (ast: any): any; funky: (declaration: any) => boolean; } 35 >module.exports : { (ast: any): any; funky: (declaration: any) => boolean; } 36 >module : { exports: { (ast: any): any; funky: (declaration: any) => boolean; }; } 37 >exports : { (ast: any): any; funky: (declaration: any) => boolean; } 41 >module.exports.funky = funky : (declaration: any) => boolean [all …]
|
D | duplicateSymbolsExportMatching.errors.txt | 1 …ortMatching.ts(24,15): error TS2395: Individual declarations in merged declaration 'I' must be all… 2 …ortMatching.ts(25,22): error TS2395: Individual declarations in merged declaration 'I' must be all… 3 …ortMatching.ts(26,22): error TS2395: Individual declarations in merged declaration 'E' must be all… 4 …ortMatching.ts(27,15): error TS2395: Individual declarations in merged declaration 'E' must be all… 5 …ortMatching.ts(32,12): error TS2395: Individual declarations in merged declaration 'inst' must be … 6 …ortMatching.ts(35,19): error TS2395: Individual declarations in merged declaration 'inst' must be … 7 …portMatching.ts(42,9): error TS2395: Individual declarations in merged declaration 'v' must be all… 8 …ortMatching.ts(43,16): error TS2395: Individual declarations in merged declaration 'v' must be all… 9 …portMatching.ts(44,9): error TS2395: Individual declarations in merged declaration 'w' must be all… 10 …ortMatching.ts(45,16): error TS2395: Individual declarations in merged declaration 'w' must be all… [all …]
|
D | defaultExportsCannotMerge04.errors.txt | 1 …TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a se… 2 …TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a se… 3 …annotMerge04.ts(8,11): error TS2395: Individual declarations in merged declaration 'Foo' must be a… 4 …nnotMerge04.ts(11,18): error TS2395: Individual declarations in merged declaration 'Foo' must be a… 10 …TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a se… 15 …TS2652: Merged declaration 'Foo' cannot include a default export declaration. Consider adding a se… 21 !!! error TS2395: Individual declarations in merged declaration 'Foo' must be all exported or all l… 26 !!! error TS2395: Individual declarations in merged declaration 'Foo' must be all exported or all l…
|
D | moduleElementsInWrongContext3.errors.txt | 1 tests/cases/compiler/moduleElementsInWrongContext3.ts(3,9): error TS1235: A namespace declaration i… 2 tests/cases/compiler/moduleElementsInWrongContext3.ts(4,9): error TS1235: A namespace declaration i… 3 tests/cases/compiler/moduleElementsInWrongContext3.ts(8,9): error TS1235: A namespace declaration i… 4 …oduleElementsInWrongContext3.ts(10,9): error TS1234: An ambient module declaration is only allowed… 5 …14,9): error TS1231: An export assignment must be at the top level of a file or module declaration. 6 tests/cases/compiler/moduleElementsInWrongContext3.ts(18,9): error TS1233: An export declaration ca… 7 tests/cases/compiler/moduleElementsInWrongContext3.ts(19,9): error TS1233: An export declaration ca… 8 tests/cases/compiler/moduleElementsInWrongContext3.ts(20,9): error TS1233: An export declaration ca… 9 ….ts(21,9): error TS1258: A default export must be at the top level of a file or module declaration. 12 tests/cases/compiler/moduleElementsInWrongContext3.ts(24,9): error TS1232: An import declaration ca… [all …]
|
D | moduleElementsInWrongContext2.errors.txt | 1 tests/cases/compiler/moduleElementsInWrongContext2.ts(2,5): error TS1235: A namespace declaration i… 2 tests/cases/compiler/moduleElementsInWrongContext2.ts(3,5): error TS1235: A namespace declaration i… 3 tests/cases/compiler/moduleElementsInWrongContext2.ts(7,5): error TS1235: A namespace declaration i… 4 …moduleElementsInWrongContext2.ts(9,5): error TS1234: An ambient module declaration is only allowed… 5 …13,5): error TS1231: An export assignment must be at the top level of a file or module declaration. 6 tests/cases/compiler/moduleElementsInWrongContext2.ts(17,5): error TS1233: An export declaration ca… 7 tests/cases/compiler/moduleElementsInWrongContext2.ts(18,5): error TS1233: An export declaration ca… 8 tests/cases/compiler/moduleElementsInWrongContext2.ts(19,5): error TS1233: An export declaration ca… 9 ….ts(20,5): error TS1258: A default export must be at the top level of a file or module declaration. 12 tests/cases/compiler/moduleElementsInWrongContext2.ts(23,5): error TS1232: An import declaration ca… [all …]
|
D | moduleElementsInWrongContext.errors.txt | 1 tests/cases/compiler/moduleElementsInWrongContext.ts(2,5): error TS1235: A namespace declaration is… 2 tests/cases/compiler/moduleElementsInWrongContext.ts(3,5): error TS1235: A namespace declaration is… 3 tests/cases/compiler/moduleElementsInWrongContext.ts(7,5): error TS1235: A namespace declaration is… 4 …/moduleElementsInWrongContext.ts(9,5): error TS1234: An ambient module declaration is only allowed… 5 …13,5): error TS1231: An export assignment must be at the top level of a file or module declaration. 6 tests/cases/compiler/moduleElementsInWrongContext.ts(17,5): error TS1233: An export declaration can… 7 tests/cases/compiler/moduleElementsInWrongContext.ts(18,5): error TS1233: An export declaration can… 8 tests/cases/compiler/moduleElementsInWrongContext.ts(19,5): error TS1233: An export declaration can… 9 ….ts(20,5): error TS1258: A default export must be at the top level of a file or module declaration. 12 tests/cases/compiler/moduleElementsInWrongContext.ts(23,5): error TS1232: An import declaration can… [all …]
|
D | useBeforeDefinitionInDeclarationFiles.symbols | 1 === tests/cases/compiler/declaration.d.ts === 3 >ClassWithSymbols : Symbol(ClassWithSymbols, Decl(declaration.d.ts, 0, 0)) 6 …l] : Symbol(ClassWithSymbols[Namespace.locallyExportedCustomSymbol], Decl(declaration.d.ts, 0, 39)) 7 …ExportedCustomSymbol : Symbol(Namespace.locallyExportedCustomSymbol, Decl(declaration.d.ts, 5, 14)) 8 >Namespace : Symbol(Namespace, Decl(declaration.d.ts, 3, 1)) 9 >locallyExportedCustomSymbol : Symbol(Namespace.locallyExportedCustomSymbol, Decl(declaration.d.ts,… 12 …bol] : Symbol(ClassWithSymbols[Namespace.fullyExportedCustomSymbol], Decl(declaration.d.ts, 1, 66)) 13 >Namespace.fullyExportedCustomSymbol : Symbol(Namespace.fullyExportedCustomSymbol, Decl(declaration… 14 >Namespace : Symbol(Namespace, Decl(declaration.d.ts, 3, 1)) 15 >fullyExportedCustomSymbol : Symbol(Namespace.fullyExportedCustomSymbol, Decl(declaration.d.ts, 6, … [all …]
|
D | invalidNewTarget.es6.errors.txt | 1 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 2 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 3 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 4 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 5 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 6 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 7 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 8 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 9 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 10 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… [all …]
|
D | invalidNewTarget.es5.errors.txt | 1 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 2 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 3 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 4 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 5 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 6 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 7 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 8 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 9 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… 10 …: Meta-property 'new.target' is only allowed in the body of a function declaration, function expre… [all …]
|
D | overloadConsecutiveness.errors.txt | 1 …10): error TS2391: Function implementation is missing or not immediately following the declaration. 3 …25): error TS2391: Function implementation is missing or not immediately following the declaration. 4 …10): error TS2391: Function implementation is missing or not immediately following the declaration. 6 …10): error TS2391: Function implementation is missing or not immediately following the declaration. 8 …28): error TS2391: Function implementation is missing or not immediately following the declaration. 9 …,2): error TS2391: Function implementation is missing or not immediately following the declaration. 11 …,8): error TS2391: Function implementation is missing or not immediately following the declaration. 12 …,2): error TS2391: Function implementation is missing or not immediately following the declaration. 14 …,2): error TS2391: Function implementation is missing or not immediately following the declaration. 16 …11): error TS2391: Function implementation is missing or not immediately following the declaration. [all …]
|
D | recursiveLetConst.errors.txt | 1 …ler/recursiveLetConst.ts(2,9): error TS2448: Block-scoped variable 'x' used before its declaration. 2 …r/recursiveLetConst.ts(3,12): error TS2448: Block-scoped variable 'x1' used before its declaration. 3 …er/recursiveLetConst.ts(4,11): error TS2448: Block-scoped variable 'y' used before its declaration. 4 …r/recursiveLetConst.ts(5,14): error TS2448: Block-scoped variable 'y1' used before its declaration. 5 …er/recursiveLetConst.ts(6,14): error TS2448: Block-scoped variable 'v' used before its declaration. 6 …er/recursiveLetConst.ts(7,16): error TS2448: Block-scoped variable 'v' used before its declaration. 7 …er/recursiveLetConst.ts(8,15): error TS2448: Block-scoped variable 'v' used before its declaration. 8 …er/recursiveLetConst.ts(9,15): error TS2448: Block-scoped variable 'v' used before its declaration. 9 …r/recursiveLetConst.ts(10,17): error TS2448: Block-scoped variable 'v' used before its declaration. 10 …/recursiveLetConst.ts(11,11): error TS2448: Block-scoped variable 'x2' used before its declaration. [all …]
|
D | autoAccessorDisallowedModifiers.errors.txt | 9 …wedModifiers.ts(10,5): error TS1275: 'accessor' modifier can only appear on a property declaration. 10 …wedModifiers.ts(11,5): error TS1275: 'accessor' modifier can only appear on a property declaration. 11 …wedModifiers.ts(12,5): error TS1275: 'accessor' modifier can only appear on a property declaration. 12 …wedModifiers.ts(13,5): error TS1275: 'accessor' modifier can only appear on a property declaration. 16 …wedModifiers.ts(25,1): error TS1275: 'accessor' modifier can only appear on a property declaration. 17 …wedModifiers.ts(26,1): error TS1275: 'accessor' modifier can only appear on a property declaration. 18 …wedModifiers.ts(27,1): error TS1275: 'accessor' modifier can only appear on a property declaration. 19 …wedModifiers.ts(28,1): error TS1275: 'accessor' modifier can only appear on a property declaration. 20 …wedModifiers.ts(29,1): error TS1275: 'accessor' modifier can only appear on a property declaration. 21 …wedModifiers.ts(30,1): error TS1275: 'accessor' modifier can only appear on a property declaration. [all …]
|
D | es6ImportNamedImportWithExport.errors.txt | 1 tests/cases/compiler/client.ts(1,1): error TS1191: An import declaration cannot have modifiers. 2 tests/cases/compiler/client.ts(2,1): error TS1191: An import declaration cannot have modifiers. 4 tests/cases/compiler/client.ts(4,1): error TS1191: An import declaration cannot have modifiers. 6 tests/cases/compiler/client.ts(6,1): error TS1191: An import declaration cannot have modifiers. 9 tests/cases/compiler/client.ts(9,1): error TS1191: An import declaration cannot have modifiers. 11 tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot have modifiers. 13 tests/cases/compiler/client.ts(13,1): error TS1191: An import declaration cannot have modifiers. 16 tests/cases/compiler/client.ts(16,1): error TS1191: An import declaration cannot have modifiers. 19 tests/cases/compiler/client.ts(19,1): error TS1191: An import declaration cannot have modifiers. 20 tests/cases/compiler/client.ts(21,1): error TS1191: An import declaration cannot have modifiers. [all …]
|
D | emptyVariableDeclarationBindingPatterns02_ES6.errors.txt | 1 …eclarationBindingPatterns02_ES6.ts(2,9): error TS1182: A destructuring declaration must have an in… 2 …eclarationBindingPatterns02_ES6.ts(3,9): error TS1182: A destructuring declaration must have an in… 3 …clarationBindingPatterns02_ES6.ts(4,11): error TS1182: A destructuring declaration must have an in… 4 …eclarationBindingPatterns02_ES6.ts(6,9): error TS1182: A destructuring declaration must have an in… 5 …eclarationBindingPatterns02_ES6.ts(7,9): error TS1182: A destructuring declaration must have an in… 6 …clarationBindingPatterns02_ES6.ts(8,11): error TS1182: A destructuring declaration must have an in… 13 !!! error TS1182: A destructuring declaration must have an initializer. 16 !!! error TS1182: A destructuring declaration must have an initializer. 19 !!! error TS1182: A destructuring declaration must have an initializer. 23 !!! error TS1182: A destructuring declaration must have an initializer. [all …]
|
D | emptyVariableDeclarationBindingPatterns02_ES5iterable.errors.txt | 1 …onBindingPatterns02_ES5iterable.ts(2,9): error TS1182: A destructuring declaration must have an in… 2 …onBindingPatterns02_ES5iterable.ts(3,9): error TS1182: A destructuring declaration must have an in… 3 …nBindingPatterns02_ES5iterable.ts(4,11): error TS1182: A destructuring declaration must have an in… 4 …onBindingPatterns02_ES5iterable.ts(6,9): error TS1182: A destructuring declaration must have an in… 5 …onBindingPatterns02_ES5iterable.ts(7,9): error TS1182: A destructuring declaration must have an in… 6 …nBindingPatterns02_ES5iterable.ts(8,11): error TS1182: A destructuring declaration must have an in… 13 !!! error TS1182: A destructuring declaration must have an initializer. 16 !!! error TS1182: A destructuring declaration must have an initializer. 19 !!! error TS1182: A destructuring declaration must have an initializer. 23 !!! error TS1182: A destructuring declaration must have an initializer. [all …]
|
D | emptyVariableDeclarationBindingPatterns02_ES5.errors.txt | 1 …eclarationBindingPatterns02_ES5.ts(2,9): error TS1182: A destructuring declaration must have an in… 2 …eclarationBindingPatterns02_ES5.ts(3,9): error TS1182: A destructuring declaration must have an in… 3 …clarationBindingPatterns02_ES5.ts(4,11): error TS1182: A destructuring declaration must have an in… 4 …eclarationBindingPatterns02_ES5.ts(6,9): error TS1182: A destructuring declaration must have an in… 5 …eclarationBindingPatterns02_ES5.ts(7,9): error TS1182: A destructuring declaration must have an in… 6 …clarationBindingPatterns02_ES5.ts(8,11): error TS1182: A destructuring declaration must have an in… 13 !!! error TS1182: A destructuring declaration must have an initializer. 16 !!! error TS1182: A destructuring declaration must have an initializer. 19 !!! error TS1182: A destructuring declaration must have an initializer. 23 !!! error TS1182: A destructuring declaration must have an initializer. [all …]
|
D | defaultExportsCannotMerge03.errors.txt | 1 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 2 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 9 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 14 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se…
|
D | defaultExportsCannotMerge02.errors.txt | 1 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 2 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 9 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 14 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se…
|
D | defaultExportsCannotMerge01.errors.txt | 1 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 2 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 9 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se… 20 …S2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a se…
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_build.c | 88 struct tgsi_declaration *declaration, in declaration_grow() argument 91 assert( declaration->NrTokens < 0xFF ); in declaration_grow() 93 declaration->NrTokens++; in declaration_grow() 101 struct tgsi_declaration declaration; in tgsi_default_declaration() local 103 declaration.Type = TGSI_TOKEN_TYPE_DECLARATION; in tgsi_default_declaration() 104 declaration.NrTokens = 1; in tgsi_default_declaration() 105 declaration.File = TGSI_FILE_NULL; in tgsi_default_declaration() 106 declaration.UsageMask = TGSI_WRITEMASK_XYZW; in tgsi_default_declaration() 107 declaration.Interpolate = 0; in tgsi_default_declaration() 108 declaration.Dimension = 0; in tgsi_default_declaration() [all …]
|