/third_party/typescript/tests/baselines/reference/ |
D | parserRealSource8.js | 178 var funcDecl = <FuncDecl>ast; 182 if (funcDecl.type) { 186 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 196 (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod))) { 199 …if (!(instType.typeFlags & TypeFlags.IsClass) && !hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)… 200 if (!funcDecl.isMethod() || isStatic) { 227 else if (funcDecl.isConstructor && context.scopeChain.thisType) { 232 …if (funcDecl.type == null || hasFlag(funcDecl.type.symbol.flags, SymbolFlags.TypeSetDuringScopeAss… 239 var nameText = funcDecl.name ? funcDecl.name.actualText : null; 250 outerFnc.innerStaticFuncs[outerFnc.innerStaticFuncs.length] = funcDecl; [all …]
|
D | parserRealSource8.types | 823 var funcDecl = <FuncDecl>ast; 824 >funcDecl : FuncDecl 836 if (funcDecl.type) { 837 >funcDecl.type : any 838 >funcDecl : FuncDecl 851 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 853 >hasFlag(funcDecl.fncFlags, FncFlags.Static) : any 855 >funcDecl.fncFlags : any 856 >funcDecl : FuncDecl 899 >context.scopeChain.thisType && (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, F… [all …]
|
D | parserRealSource8.symbols | 555 var funcDecl = <FuncDecl>ast; 556 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11)) 568 if (funcDecl.type) { 569 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11)) 576 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 578 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11)) 607 (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod))) { 608 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11)) 609 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11)) 617 …if (!(instType.typeFlags & TypeFlags.IsClass) && !hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)… [all …]
|
D | parserRealSource7.js | 586 var funcDecl = <FuncDecl>ast; variable 588 var nameText = funcDecl.getNameText(); 589 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport… 590 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 591 var isPrivate = hasFlag(funcDecl.fncFlags, FncFlags.Private); 592 var isConstructor = funcDecl.isConstructMember() || funcDecl.isConstructor; 593 …var containerSym:TypeSymbol = <TypeSymbol> (((funcDecl.isMethod() && isStatic) || funcDecl.isAcces… 596 var isOptional = funcDecl.name && hasFlag(funcDecl.name.flags, ASTFlags.OptionalName); 601 if (isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 606 funcDecl.unitIndex = context.checker.locationInfo.unitIndex; [all …]
|
D | parserRealSource7.types | 3274 var funcDecl = <FuncDecl>ast; 3275 >funcDecl : FuncDecl 3283 var nameText = funcDecl.getNameText(); 3285 >funcDecl.getNameText() : any 3286 >funcDecl.getNameText : any 3287 >funcDecl : FuncDecl 3290 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport… 3292 >hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExported) : any 3294 >funcDecl.fncFlags : any 3295 >funcDecl : FuncDecl [all …]
|
D | parserRealSource7.symbols | 1656 var funcDecl = <FuncDecl>ast; 1657 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11)) 1665 var nameText = funcDecl.getNameText(); 1667 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11)) 1669 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport… 1671 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11)) 1673 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 1675 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11)) 1677 var isPrivate = hasFlag(funcDecl.fncFlags, FncFlags.Private); 1679 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11)) [all …]
|
D | parserRealSource6.types | 732 var funcDecl = <FuncDecl>ast; 733 >funcDecl : FuncDecl 751 …funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { … 755 …funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { … 758 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 759 >funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod) : any 760 >funcDecl.isConstructor : any 761 >funcDecl : FuncDecl 763 >hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod) : any 765 >funcDecl.fncFlags : any [all …]
|
D | parserRealSource6.js | 173 var funcDecl = <FuncDecl>ast; 180 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 186 if (funcDecl.scopeType) { 187 return funcDecl.scopeType.containedScope; 190 if (funcDecl.type) { 191 return funcDecl.type.containedScope; 377 var funcDecl = ast; 384 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 389 if (funcDecl.scopeType) { 390 return funcDecl.scopeType.containedScope; [all …]
|
D | parserRealSource8.errors.txt | 400 var funcDecl = <FuncDecl>ast; 406 if (funcDecl.type) { 410 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 424 (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod))) { 431 …if (!(instType.typeFlags & TypeFlags.IsClass) && !hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)… 438 if (!funcDecl.isMethod() || isStatic) { 469 else if (funcDecl.isConstructor && context.scopeChain.thisType) { 474 …if (funcDecl.type == null || hasFlag(funcDecl.type.symbol.flags, SymbolFlags.TypeSetDuringScopeAss… 487 var nameText = funcDecl.name ? funcDecl.name.actualText : null; 506 outerFnc.innerStaticFuncs[outerFnc.innerStaticFuncs.length] = funcDecl; [all …]
|
D | parserRealSource6.symbols | 555 var funcDecl = <FuncDecl>ast; 556 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23)) 577 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 578 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23)) 579 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23)) 590 if (funcDecl.scopeType) { 591 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23)) 593 return funcDecl.scopeType.containedScope; 594 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23)) 597 if (funcDecl.type) { [all …]
|
D | parserRealSource7.errors.txt | 1363 var funcDecl = <FuncDecl>ast; 1369 var nameText = funcDecl.getNameText(); 1370 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport… 1377 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 1382 var isPrivate = hasFlag(funcDecl.fncFlags, FncFlags.Private); 1387 var isConstructor = funcDecl.isConstructMember() || funcDecl.isConstructor; 1388 …var containerSym:TypeSymbol = <TypeSymbol> (((funcDecl.isMethod() && isStatic) || funcDecl.isAcces… 1397 var isOptional = funcDecl.name && hasFlag(funcDecl.name.flags, ASTFlags.OptionalName); 1406 if (isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 1417 funcDecl.unitIndex = context.checker.locationInfo.unitIndex; [all …]
|
D | parserRealSource6.errors.txt | 341 var funcDecl = <FuncDecl>ast; 350 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 360 if (funcDecl.scopeType) { 361 return funcDecl.scopeType.containedScope; 364 if (funcDecl.type) { 365 return funcDecl.type.containedScope;
|
D | parserRealSource13.types | 362 FuncDeclCallback? (pre, funcDecl: FuncDecl): boolean; 363 >FuncDeclCallback : (pre: any, funcDecl: FuncDecl) => boolean 365 >funcDecl : FuncDecl
|
D | parserRealSource13.js | 79 FuncDeclCallback? (pre, funcDecl: FuncDecl): boolean;
|
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/ |
D | parserRealSource8.ts | 177 var funcDecl = <FuncDecl>ast; 181 if (funcDecl.type) { 185 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 195 (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod))) { 198 …if (!(instType.typeFlags & TypeFlags.IsClass) && !hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)… 199 if (!funcDecl.isMethod() || isStatic) { 226 else if (funcDecl.isConstructor && context.scopeChain.thisType) { 231 …if (funcDecl.type == null || hasFlag(funcDecl.type.symbol.flags, SymbolFlags.TypeSetDuringScopeAss… 238 var nameText = funcDecl.name ? funcDecl.name.actualText : null; 249 outerFnc.innerStaticFuncs[outerFnc.innerStaticFuncs.length] = funcDecl; [all …]
|
D | parserRealSource7.ts | 585 var funcDecl = <FuncDecl>ast; 587 var nameText = funcDecl.getNameText(); 588 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport… 589 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static); 590 var isPrivate = hasFlag(funcDecl.fncFlags, FncFlags.Private); 591 var isConstructor = funcDecl.isConstructMember() || funcDecl.isConstructor; 592 …var containerSym:TypeSymbol = <TypeSymbol> (((funcDecl.isMethod() && isStatic) || funcDecl.isAcces… 595 var isOptional = funcDecl.name && hasFlag(funcDecl.name.flags, ASTFlags.OptionalName); 600 if (isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 605 funcDecl.unitIndex = context.checker.locationInfo.unitIndex; [all …]
|
D | parserRealSource6.ts | 172 var funcDecl = <FuncDecl>ast; 179 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { 185 if (funcDecl.scopeType) { 186 return funcDecl.scopeType.containedScope; 189 if (funcDecl.type) { 190 return funcDecl.type.containedScope;
|
D | parserRealSource13.ts | 78 FuncDeclCallback? (pre, funcDecl: FuncDecl): boolean;
|
/third_party/typescript/tests/cases/fourslash/ |
D | toggleDuplicateFunctionDeclaration.ts | 6 var funcDecl = 'declare function D();'; variable 9 edit.insert(funcDecl); 12 edit.deleteAtCaret(funcDecl.length);
|
/third_party/skia/src/sksl/ |
D | SkSLInliner.cpp | 108 static bool contains_recursive_call(const FunctionDeclaration& funcDecl) { in contains_recursive_call() argument 111 bool visit(const FunctionDeclaration& funcDecl) { in contains_recursive_call() argument 112 fFuncDecl = &funcDecl; in contains_recursive_call() 113 return funcDecl.definition() ? this->visitProgramElement(*funcDecl.definition()) in contains_recursive_call() 136 return ContainsRecursiveCall{}.visit(funcDecl); in contains_recursive_call() 1056 const FunctionDeclaration& funcDecl = candidate_func(candidate); in candidateCanBeInlined() local 1057 auto [iter, wasInserted] = cache->insert({&funcDecl, false}); in candidateCanBeInlined() 1060 iter->second = this->isSafeToInline(funcDecl.definition(), usage) && in candidateCanBeInlined() 1061 !contains_recursive_call(funcDecl); in candidateCanBeInlined() 1067 int Inliner::getFunctionSize(const FunctionDeclaration& funcDecl, FunctionSizeCache* cache) { in getFunctionSize() argument [all …]
|
D | SkSLAnalysis.h | 170 bool CanExitWithoutReturningValue(const FunctionDeclaration& funcDecl, const Statement& body);
|
D | SkSLDehydrator.cpp | 173 for (const FunctionDeclaration* funcDecl : f.functions()) { in write() local 174 this->write(*funcDecl); in write()
|
D | SkSLRehydrator.cpp | 360 const FunctionDeclaration* funcDecl = this->symbolRef<FunctionDeclaration>( in statement() local 362 return InlineMarker::Make(funcDecl); in statement()
|
/third_party/skia/src/sksl/analysis/ |
D | SkSLCanExitWithoutReturningValue.cpp | 160 bool Analysis::CanExitWithoutReturningValue(const FunctionDeclaration& funcDecl, in CanExitWithoutReturningValue() argument 162 if (funcDecl.returnType().isVoid()) { in CanExitWithoutReturningValue()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
D | RewritePipelines.cpp | 152 auto getFunction = [](sh::TIntermFunctionDefinition *funcDecl) { in exec() argument 153 return funcDecl ? funcDecl->getFunction() : nullptr; in exec()
|