/third_party/typescript/tests/baselines/reference/ |
D | parserRealSource9.js | 9 constructor (public checker: TypeChecker) { } 16 this.checker.resolvingBases = true; 17 this.checker.resolveTypeLink(scope, typeLink, true); 18 this.checker.resolvingBases = false; 37 if (type.extendsList[i] != this.checker.anyType) { 40 this.checker.errorReporter.simpleErrorFromSym(type.symbol, 46 this.checker.errorReporter.simpleErrorFromSym(type.symbol, 60 this.checker.errorReporter.simpleErrorFromSym(type.symbol, 76 this.checker.resolveTypeLink(scope, signature.returnType, supplyVar); 87 this.checker.errorReporter.simpleErrorFromSym(lastParam, [all …]
|
D | parserRealSource9.symbols | 13 constructor (public checker: TypeChecker) { } 14 >checker : Symbol(Binder.checker, Decl(parserRealSource9.ts, 7, 21)) 49 this.checker.resolvingBases = true; 50 >this.checker : Symbol(Binder.checker, Decl(parserRealSource9.ts, 7, 21)) 52 >checker : Symbol(Binder.checker, Decl(parserRealSource9.ts, 7, 21)) 54 this.checker.resolveTypeLink(scope, typeLink, true); 55 >this.checker : Symbol(Binder.checker, Decl(parserRealSource9.ts, 7, 21)) 57 >checker : Symbol(Binder.checker, Decl(parserRealSource9.ts, 7, 21)) 61 this.checker.resolvingBases = false; 62 >this.checker : Symbol(Binder.checker, Decl(parserRealSource9.ts, 7, 21)) [all …]
|
D | parserRealSource9.types | 13 constructor (public checker: TypeChecker) { } 14 >checker : TypeChecker 55 this.checker.resolvingBases = true; 56 >this.checker.resolvingBases = true : true 57 >this.checker.resolvingBases : any 58 >this.checker : TypeChecker 60 >checker : TypeChecker 64 this.checker.resolveTypeLink(scope, typeLink, true); 65 >this.checker.resolveTypeLink(scope, typeLink, true) : any 66 >this.checker.resolveTypeLink : any [all …]
|
D | parserRealSource7.js | 43 context.checker.locationInfo.unitIndex, true, field); 116 …symbol = context.tcContext.checker.findSymbolForDynamicModule(name, context.tcContext.script.locat… 160 var isGlobal = context.scopeChain.container == context.checker.gloMod; 171 context.checker.locationInfo.unitIndex, modType); 181 context.checker.errorReporter, isExported || isGlobal, true, false); 183 … context.checker.errorReporter, isExported || isGlobal, false, false); 194 var isGlobal = context.scopeChain.container == context.checker.gloMod; 218 context.checker.locationInfo.unitIndex, modType); 226 … context.checker.errorReporter, isExported || isGlobal, true, isAmbient); 228 … context.checker.errorReporter, isExported || isGlobal, false, isAmbient); [all …]
|
D | parserRealSource7.types | 175 >new FieldSymbol("prototype", ast.minChar, context.checker.locationInfo.… 182 context.checker.locationInfo.unitIndex, true, field); 183 >context.checker.locationInfo.unitIndex : any 184 >context.checker.locationInfo : any 185 >context.checker : any 187 >checker : any 548 …symbol = context.tcContext.checker.findSymbolForDynamicModule(name, context.tcContext.script.locat… 549 >symbol = context.tcContext.checker.findSymbolForDynamicModule(name, context.tcContext.script.locat… 551 >context.tcContext.checker.findSymbolForDynamicModule(name, context.tcContext.script.locationInfo.f… 552 >context.tcContext.checker.findSymbolForDynamicModule : any [all …]
|
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/ |
D | parserRealSource9.ts | 8 constructor (public checker: TypeChecker) { } property in Binder 15 this.checker.resolvingBases = true; 16 this.checker.resolveTypeLink(scope, typeLink, true); 17 this.checker.resolvingBases = false; 36 if (type.extendsList[i] != this.checker.anyType) { 39 this.checker.errorReporter.simpleErrorFromSym(type.symbol, 45 this.checker.errorReporter.simpleErrorFromSym(type.symbol, 59 this.checker.errorReporter.simpleErrorFromSym(type.symbol, 75 this.checker.resolveTypeLink(scope, signature.returnType, supplyVar); 86 this.checker.errorReporter.simpleErrorFromSym(lastParam, [all …]
|
D | parserRealSource7.ts | 42 context.checker.locationInfo.unitIndex, true, field); 115 …symbol = context.tcContext.checker.findSymbolForDynamicModule(name, context.tcContext.script.locat… 159 var isGlobal = context.scopeChain.container == context.checker.gloMod; 170 context.checker.locationInfo.unitIndex, modType); 180 context.checker.errorReporter, isExported || isGlobal, true, false); 182 … context.checker.errorReporter, isExported || isGlobal, false, false); 193 var isGlobal = context.scopeChain.container == context.checker.gloMod; 217 context.checker.locationInfo.unitIndex, modType); 225 … context.checker.errorReporter, isExported || isGlobal, true, isAmbient); 227 … context.checker.errorReporter, isExported || isGlobal, false, isAmbient); [all …]
|
/third_party/typescript/src/services/codefixes/ |
D | addMissingAwait.ts | 40 const checker = context.program.getTypeChecker(); constant 43 getDeclarationSiteFix(context, expression, errorCode, checker, trackChanges), 44 getUseSiteFix(context, expression, errorCode, checker, trackChanges)]); 48 const checker = context.program.getTypeChecker(); constant 56 …return getDeclarationSiteFix(context, expression, diagnostic.code, checker, trackChanges, fixedDec… 57 … || getUseSiteFix(context, expression, diagnostic.code, checker, trackChanges, fixedDeclarations); 69 …xContext | CodeFixAllContext, expression: Expression, errorCode: number, checker: TypeChecker, tra… 71 …tializers = findAwaitableInitializers(expression, sourceFile, cancellationToken, program, checker); 74 …s.initializers, ({ expression }) => makeChange(t, errorCode, sourceFile, checker, expression, fixe… 76 makeChange(t, errorCode, sourceFile, checker, expression, fixedDeclarations); [all …]
|
D | convertToAsyncFunction.ts | 41 readonly checker: TypeChecker; property 53 …es: textChanges.ChangeTracker, sourceFile: SourceFile, position: number, checker: TypeChecker): vo… 73 … const setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker); 74 …const functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap… 75 if (!returnsPromise(functionToConvertRenamed, checker)) { 79 …ody) ? getReturnStatementsWithPromiseHandlers(functionToConvertRenamed.body, checker) : emptyArray; 80 …const transformer: Transformer = { checker, synthNamesMap, setOfExpressionsToReturn, isInJSFile: i… 110 …function getReturnStatementsWithPromiseHandlers(body: Block, checker: TypeChecker): readonly Retur… 113 if (isReturnStatementWithFixablePromiseHandler(ret, checker)) res.push(ret); 121 …function getAllPromiseExpressionsToReturn(func: FunctionLikeDeclaration, checker: TypeChecker): Se… [all …]
|
D | inferFromUsage.ts | 439 const checker = program.getTypeChecker(); constant 441 string: () => checker.getStringType(), 442 number: () => checker.getNumberType(), 443 Array: t => checker.createArrayType(t), 444 Promise: t => checker.createPromiseType(t), 447 checker.getStringType(), 448 checker.getNumberType(), 449 checker.createArrayType(checker.getAnyType()), 450 checker.createPromiseType(checker.getAnyType()), 549 types.push(checker.getUndefinedType()); [all …]
|
D | addOptionalPropertyUndefined.ts | 25 function getPropertiesToAdd(file: SourceFile, span: TextSpan, checker: TypeChecker): Symbol[] { 26 const sourceTarget = getSourceTarget(getFixableErrorSpanExpression(file, span), checker); 31 const target = shouldUseParentTypeOfProperty(sourceNode, targetNode, checker) 32 ? checker.getTypeAtLocation(targetNode.expression) 33 : checker.getTypeAtLocation(targetNode); 37 return checker.getExactOptionalProperties(target); 40 …function shouldUseParentTypeOfProperty(sourceNode: Node, targetNode: Node, checker: TypeChecker): … 42 … && !!checker.getExactOptionalProperties(checker.getTypeAtLocation(targetNode.expression)).length 43 && checker.getTypeAtLocation(sourceNode) === checker.getUndefinedType(); 50 …function getSourceTarget(errorNode: Node | undefined, checker: TypeChecker): { source: Node, targe… [all …]
|
D | returnValueCorrect.ts | 75 …function createObjectTypeFromLabeledExpression(checker: TypeChecker, label: Identifier, expression… 76 const member = checker.createSymbol(SymbolFlags.Property, label.escapedText); 77 member.type = checker.getTypeAtLocation(expression); 79 return checker.createAnonymousType(/*symbol*/ undefined, members, [], [], []); 82 …function getFixInfo(checker: TypeChecker, declaration: FunctionLikeDeclaration, expectType: Type, … 86 …ExpressionStatement(firstStatement) && checkFixedAssignableTo(checker, declaration, checker.getTyp… 97 …const nodeType = createObjectTypeFromLabeledExpression(checker, firstStatement.label, firstStateme… 98 … if (checkFixedAssignableTo(checker, declaration, nodeType, expectType, isFunctionType)) { 118 …const nodeType = createObjectTypeFromLabeledExpression(checker, firstBlockStatement.label, firstBl… 119 … if (checkFixedAssignableTo(checker, declaration, nodeType, expectType, isFunctionType)) { [all …]
|
D | fixJSDocTypes.ts | 10 const checker = context.program.getTypeChecker(); constant 11 const info = getInfo(sourceFile, context.span.start, checker); 19 …actions.push(fix(checker.getNullableType(type, TypeFlags.Undefined), fixIdNullable, Diagnostics.Ch… 24 …s = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, typeNode, type, checker)); 25 …odeFixAction("jdocTypes", changes, [Diagnostics.Change_0_to_1, original, checker.typeToString(type… 31 const checker = program.getTypeChecker(); constant 33 const info = getInfo(err.file, err.start, checker); 36 …eNode.kind === SyntaxKind.JSDocNullableType && fixId === fixIdNullable ? checker.getNullableType(t… constant 37 doChange(changes, sourceFile, typeNode, fixedType, checker); 42 …geTracker, sourceFile: SourceFile, oldTypeNode: TypeNode, newType: Type, checker: TypeChecker): vo… [all …]
|
D | fixAddMissingMember.ts | 56 const checker = program.getTypeChecker(); constant 62 … const info = getInfo(diag.file, diag.start, diag.code, checker, context.program); 77 addEnumMemberDeclaration(changes, checker, info); 90 … const supers = isTypeLiteralNode(declaration) ? undefined : getAllSupers(declaration, checker); 108 const typeNode = getTypeNode(checker, parentDeclaration, token); 168 …function getInfo(sourceFile: SourceFile, tokenPos: number, errorCode: number, checker: TypeChecker… 181 const signature = checker.getResolvedSignature(parent.parent); 187 …const properties = arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent), che… 195 …const properties = arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent.initi… 203 const attributes = getUnmatchedAttributes(checker, target, token.parent); [all …]
|
D | fixSpelling.ts | 50 const checker = context.program.getTypeChecker(); constant 55 let containingType = checker.getTypeAtLocation(parent.expression); 57 containingType = checker.getNonNullableType(containingType); 59 … suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, containingType); 62 const receiverType = checker.getTypeAtLocation(parent.right); 63 suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, receiverType); 66 const symbol = checker.getSymbolAtLocation(parent.left); 68 … suggestedSymbol = checker.getSuggestedSymbolForNonexistentModule(parent.right, symbol); 76 … suggestedSymbol = checker.getSuggestedSymbolForNonexistentModule(node, resolvedSourceFile.symbol); 82 const props = checker.getContextualTypeForArgumentAtIndex(tag, 0); [all …]
|
D | fixClassIncorrectlyImplementsInterface.ts | 48 const checker = context.program.getTypeChecker(); constant 49 const maybeHeritageClauseSymbol = getHeritageClauseSymbolTable(classDeclaration, checker); 52 const implementedType = checker.getTypeAtLocation(implementedTypeNode) as InterfaceType; 53 const implementedTypeSymbols = checker.getPropertiesOfType(implementedType); 56 const classType = checker.getTypeAtLocation(classDeclaration); 71 const indexInfoOfKind = checker.getIndexInfoOfType(type, kind); 73 …insertInterfaceMemberNode(sourceFile, classDeclaration, checker.indexInfoToIndexSignatureDeclarati… 88 …function getHeritageClauseSymbolTable(classDeclaration: ClassLikeDeclaration, checker: TypeChecker… 91 const heritageClauseType = checker.getTypeAtLocation(heritageClauseNode) as InterfaceType; 92 const heritageClauseTypeSymbols = checker.getPropertiesOfType(heritageClauseType);
|
/third_party/gn/src/gn/ |
D | innerapis_publicinfo_generator.cc | 109 static bool TraverIncludeDirs(const OhosComponentChecker *checker, const Target *target, const Scop… in TraverIncludeDirs() argument 118 if (!checker->CheckIncludesAbsoluteDepsOther(target, label, real_dir.value(), err)) { in TraverIncludeDirs() 126 static bool CheckIncludes(const OhosComponentChecker *checker, const std::string dir, bool isPublic, in CheckIncludes() argument 133 if (checker != nullptr) { in CheckIncludes() 134 if (!checker->CheckInnerApiIncludesOverRange(target, label, dir, err)) { in CheckIncludes() 139 if (checker != nullptr) { in CheckIncludes() 140 if (!checker->CheckIncludesAbsoluteDepsOther(target, label, dir, err)) { in CheckIncludes() 147 static std::string GetIncludeDirsInfo(const Config *config, const OhosComponentChecker *checker, bo… in GetIncludeDirsInfo() argument 159 if (!CheckIncludes(checker, dir.value(), isPublic, params)) { in GetIncludeDirsInfo() 168 … const UniqueVector<LabelConfigPair> &configs, const OhosComponentChecker *checker, bool isPublic) in GetPublicConfigInfo() argument [all …]
|
D | header_checker_unittest.cc | 83 auto checker = CreateChecker(); in TEST_F() local 101 EXPECT_FALSE(checker->IsDependencyOf(&a_, &a_, &chain, &is_permitted)); in TEST_F() 106 EXPECT_TRUE(checker->IsDependencyOf(&b_, &a_, &chain, &is_permitted)); in TEST_F() 116 EXPECT_TRUE(checker->IsDependencyOf(&c_, &a_, &chain, &is_permitted)); in TEST_F() 126 EXPECT_FALSE(checker->IsDependencyOf(&a_, &c_, &chain, &is_permitted)); in TEST_F() 135 EXPECT_TRUE(checker->IsDependencyOf(&c_, &a_, &chain, &is_permitted)); in TEST_F() 146 EXPECT_TRUE(checker->IsDependencyOf(&c_, &p, &chain, &is_permitted)); in TEST_F() 198 auto checker = CreateChecker(); in TEST_F() local 204 checker->CheckInclude(&a_, input_file, d_header, range, &no_dependency_cache, in TEST_F() 211 checker->CheckInclude(&a_, input_file, b_public, range, &no_dependency_cache, in TEST_F() [all …]
|
/third_party/typescript/src/services/ |
D | suggestionDiagnostics.ts | 8 const checker = program.getTypeChecker(); constant 42 if (canBeConvertedToClass(node, checker)) { 63 addConvertToAsyncFunctionDiagnostics(node, checker, diags); 106 …function addConvertToAsyncFunctionDiagnostics(node: FunctionLikeDeclaration, checker: TypeChecker,… 108 …if (isConvertibleFunction(node, checker) && !visitedNestedConvertibleFunctions.has(getKeyFromNode(… 115 function isConvertibleFunction(node: FunctionLikeDeclaration, checker: TypeChecker) { 119 hasReturnStatementWithPromiseHandler(node.body, checker) && 120 returnsPromise(node, checker); 123 export function returnsPromise(node: FunctionLikeDeclaration, checker: TypeChecker): boolean { 124 const signature = checker.getSignatureFromDeclaration(node); [all …]
|
D | importTracker.ts | 15 …sourceFiles: readonly SourceFile[], sourceFilesSet: ReadonlySet<string>, checker: TypeChecker, can… 16 const allDirectImports = getDirectImportsMap(sourceFiles, checker, cancellationToken); 18 …tersForExport(sourceFiles, sourceFilesSet, allDirectImports, exportInfo, checker, cancellationToke… 19 …rchesFromDirectImports(directImports, exportSymbol, exportInfo.exportKind, checker, isForRename) }; 45 checker: TypeChecker, 288 const defaultImportAlias = checker.getSymbolAtLocation(name)!; 301 addSearch(importName, checker.getSymbolAtLocation(importName)!); 323 addSearch(name, checker.getSymbolAtLocation(name)!); 328 …? checker.getExportSpecifierLocalTargetSymbol(element)! // For re-exporting under a different name… 329 : checker.getSymbolAtLocation(name)!; [all …]
|
D | exportInfoMap.ts | 50 …rceFile | undefined, exportKind: ExportKind, isFromPackageJson: boolean, checker: TypeChecker): vo… 89 …ile, symbol, symbolTableKey, moduleSymbol, moduleFile, exportKind, isFromPackageJson, checker) => { 135 const target = skipAlias(symbol, checker); 140 …(symbolName, symbol, isExternalModuleNameRelative(moduleName) ? undefined : moduleName, checker), { 221 const checker = (isFromPackageJson constant 225 ? checker.getMergedSymbol(info.moduleFile.symbol) 226 : checker.tryFindAmbientModule(info.moduleName)); 228 ? checker.resolveExternalModuleSymbol(moduleSymbol) 229 …: checker.tryGetMemberInModuleExportsAndProperties(unescapeLeadingUnderscores(info.symbolTableKey)… 242 …rtedName: string, symbol: Symbol, ambientModuleName: string | undefined, checker: TypeChecker): st… [all …]
|
D | signatureHelp.ts | 74 …function getCandidateOrTypeInfo({ invocation, argumentCount }: ArgumentListInfo, checker: TypeChec… 81 …const resolvedSignature = checker.getResolvedSignatureForSignatureHelp(invocation.node, candidates… 89 const candidates = getPossibleGenericSignatures(called, argumentCount, checker); 92 const symbol = checker.getSymbolAtLocation(called); 290 …xtualParameterInfo(node: Node, position: number, sourceFile: SourceFile, checker: TypeChecker): Ar… 291 …return tryGetParameterInfo(node, position, sourceFile, checker) || getImmediatelyContainingArgumen… 302 …meterInfo(startingToken: Node, position: number, sourceFile: SourceFile, checker: TypeChecker): Ar… 303 … const info = getContextualSignatureLocationInfo(startingToken, sourceFile, position, checker); 321 …ationInfo(startingToken: Node, sourceFile: SourceFile, position: number, checker: TypeChecker): Co… 332 …extualType = isMethodDeclaration(parent) ? checker.getContextualTypeForObjectLiteralElement(parent… [all …]
|
D | findAllReferences.ts | 211 const checker = program.getTypeChecker(); constant 214 …const symbol = isDefinitionForReference(adjustedNode) ? checker.getSymbolAtLocation(adjustedNode) … 218 …definition: checker.runWithCancellationToken(cancellationToken, checker => definitionToReferencedS… 258 const checker = program.getTypeChecker(); constant 259 return map(referenceEntries, entry => toImplementationLocation(entry, checker)); 267 const checker = program.getTypeChecker(); constant 272 …Core.getReferenceEntriesForShorthandPropertyAssignment(node, checker, node => result.push(nodeEntr… 278 const symbol = checker.getSymbolAtLocation(node)!; 294 …export type ToReferenceOrRenameEntry<T> = (entry: Entry, originalNode: Node, checker: TypeChecker)… 312 …function definitionToReferencedSymbolDefinitionInfo(def: Definition, checker: TypeChecker, origina… [all …]
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
D | base_printer.py | 65 def outputResults(self, checker, broken_links=True, argument 77 def outputBrokenLinks(self, checker, broken): argument 89 def outputMissingIncludes(self, checker, missing): argument 100 def outputChecker(self, checker): argument 105 for f in checker.files: 116 def outputBrokenAndMissing(self, checker, broken_links=True, argument 124 broken = checker.getBrokenLinks() 126 self.outputBrokenLinks(checker, broken) 128 missing = checker.getMissingUnreferencedApiIncludes() 130 self.outputMissingIncludes(checker, missing)
|
D | main.py | 129 checker = make_macro_checker(enabled_messages) 133 f.write(checker.getEntityJson()) 142 checker.processFile(fn) 162 numErrors = checker.numDiagnostics() 164 numErrors = checker.numErrors() 173 printer.outputResults(checker, broken_links=(not args.file), 177 numErrors += len(checker.getBrokenLinks()) 183 numErrors += len(checker.getMissingUnreferencedApiIncludes()) 191 missing = checker.getMissingRefPages() 203 numErrors += len(checker.getBrokenLinks()) [all …]
|