Home
last modified time | relevance | path

Searched refs:funcDecl (Results 1 – 25 of 33) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DparserRealSource8.js178 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 …]
DparserRealSource8.types823 var funcDecl = <FuncDecl>ast;
824 >funcDecl : any
836 if (funcDecl.type) {
837 >funcDecl.type : any
838 >funcDecl : any
851 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static);
853 >hasFlag(funcDecl.fncFlags, FncFlags.Static) : any
855 >funcDecl.fncFlags : any
856 >funcDecl : any
899 >context.scopeChain.thisType && (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, F…
[all …]
DparserRealSource8.symbols530 var funcDecl = <FuncDecl>ast;
531 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11))
542 if (funcDecl.type) {
543 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11))
550 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static);
552 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11))
581 (!funcDecl.isConstructor || hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod))) {
582 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11))
583 >funcDecl : Symbol(funcDecl, Decl(parserRealSource8.ts, 176, 11))
591 …if (!(instType.typeFlags & TypeFlags.IsClass) && !hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)…
[all …]
DparserRealSource7.js586 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 …]
DparserRealSource7.types3274 var funcDecl = <FuncDecl>ast;
3275 >funcDecl : any
3283 var nameText = funcDecl.getNameText();
3285 >funcDecl.getNameText() : any
3286 >funcDecl.getNameText : any
3287 >funcDecl : any
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 : any
[all …]
DparserRealSource7.symbols1589 var funcDecl = <FuncDecl>ast;
1590 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11))
1596 var nameText = funcDecl.getNameText();
1598 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11))
1600 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport…
1602 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11))
1604 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static);
1606 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11))
1608 var isPrivate = hasFlag(funcDecl.fncFlags, FncFlags.Private);
1610 >funcDecl : Symbol(funcDecl, Decl(parserRealSource7.ts, 584, 11))
[all …]
DparserRealSource6.js173 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 …]
DparserRealSource6.types732 var funcDecl = <FuncDecl>ast;
733 >funcDecl : any
751funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) { …
755funcDecl.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 : any
763 >hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod) : any
765 >funcDecl.fncFlags : any
[all …]
DparserRealSource8.errors.txt400 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 …]
DparserRealSource6.symbols515 var funcDecl = <FuncDecl>ast;
516 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23))
536 … if (funcDecl.isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) {
537 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23))
538 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23))
549 if (funcDecl.scopeType) {
550 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23))
552 return funcDecl.scopeType.containedScope;
553 >funcDecl : Symbol(funcDecl, Decl(parserRealSource6.ts, 171, 23))
556 if (funcDecl.type) {
[all …]
DparserRealSource7.errors.txt1361 var funcDecl = <FuncDecl>ast;
1367 var nameText = funcDecl.getNameText();
1368 …var isExported = hasFlag(funcDecl.fncFlags, FncFlags.Exported | FncFlags.ClassPropertyMethodExport…
1375 var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static);
1380 var isPrivate = hasFlag(funcDecl.fncFlags, FncFlags.Private);
1385 var isConstructor = funcDecl.isConstructMember() || funcDecl.isConstructor;
1386 …var containerSym:TypeSymbol = <TypeSymbol> (((funcDecl.isMethod() && isStatic) || funcDecl.isAcces…
1395 var isOptional = funcDecl.name && hasFlag(funcDecl.name.flags, ASTFlags.OptionalName);
1404 if (isConstructor && hasFlag(funcDecl.fncFlags, FncFlags.ClassMethod)) {
1415 funcDecl.unitIndex = context.checker.locationInfo.unitIndex;
[all …]
DparserRealSource6.errors.txt341 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;
DparserRealSource13.types362 FuncDeclCallback? (pre, funcDecl: FuncDecl): boolean;
363 >FuncDeclCallback : (pre: any, funcDecl: any) => boolean
365 >funcDecl : any
DparserRealSource13.js79 FuncDeclCallback? (pre, funcDecl: FuncDecl): boolean;
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource8.ts177 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 …]
DparserRealSource7.ts585 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 …]
DparserRealSource6.ts172 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;
DparserRealSource13.ts78 FuncDeclCallback? (pre, funcDecl: FuncDecl): boolean;
/third_party/typescript/tests/cases/fourslash/
DtoggleDuplicateFunctionDeclaration.ts6 var funcDecl = 'declare function D();'; variable
9 edit.insert(funcDecl);
12 edit.deleteAtCaret(funcDecl.length);
/third_party/skia/src/sksl/
DSkSLInliner.cpp108 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 …]
DSkSLAnalysis.h170 bool CanExitWithoutReturningValue(const FunctionDeclaration& funcDecl, const Statement& body);
DSkSLDehydrator.cpp173 for (const FunctionDeclaration* funcDecl : f.functions()) { in write() local
174 this->write(*funcDecl); in write()
DSkSLRehydrator.cpp360 const FunctionDeclaration* funcDecl = this->symbolRef<FunctionDeclaration>( in statement() local
362 return InlineMarker::Make(funcDecl); in statement()
/third_party/skia/src/sksl/analysis/
DSkSLCanExitWithoutReturningValue.cpp160 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/
DRewritePipelines.cpp152 auto getFunction = [](sh::TIntermFunctionDefinition *funcDecl) { in exec() argument
153 return funcDecl ? funcDecl->getFunction() : nullptr; in exec()

12