Home
last modified time | relevance | path

Searched refs:Scope (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/third_party/gn/src/gn/
Dscope.cc31 Scope::MergeOptions::MergeOptions() in MergeOptions()
36 Scope::MergeOptions::~MergeOptions() = default;
38 Scope::ProgrammaticProvider::~ProgrammaticProvider() { in ~ProgrammaticProvider()
42 Scope::Scope(const Settings* settings) in Scope() function in Scope
49 Scope::Scope(Scope* parent) in Scope() function in Scope
57 Scope::Scope(const Scope* parent) in Scope() function in Scope
65 Scope::~Scope() = default;
67 void Scope::DetachFromContaining() { in DetachFromContaining()
72 bool Scope::HasValues(SearchNested search_nested) const { in HasValues()
77 const Value* Scope::GetValue(std::string_view ident, bool counts_as_used) { in GetValue()
[all …]
Dfunctions.h19 class Scope; variable
29 using SelfEvaluatingArgsFunction = Value (*)(Scope* scope,
35 using GenericBlockFunction = Value (*)(Scope* scope,
46 Scope* block_scope,
50 using NoBlockFunction = Value (*)(Scope* scope,
58 Value RunAction(Scope* scope,
67 Value RunActionForEach(Scope* scope,
76 Value RunAssert(Scope* scope,
84 Value RunBundleData(Scope* scope,
93 Value RunCreateBundle(Scope* scope,
[all …]
Dscope.h39 class Scope {
54 explicit ProgrammaticProvider(Scope* scope) : scope_(scope) { in ProgrammaticProvider()
64 Scope* scope_;
98 explicit Scope(const Settings* settings);
101 explicit Scope(Scope* parent);
102 explicit Scope(const Scope* parent);
104 ~Scope();
110 Scope* mutable_containing() { return mutable_containing_; } in mutable_containing()
111 const Scope* mutable_containing() const { return mutable_containing_; } in mutable_containing()
112 const Scope* const_containing() const { return const_containing_; } in const_containing()
[all …]
Dscope_unittest.cc16 bool HasStringValueEqualTo(const Scope* scope, in HasStringValueEqualTo()
27 bool ContainsBuildDependencyFile(const Scope* scope, in ContainsBuildDependencyFile()
36 TEST(Scope, InheritBuildDependencyFilesFromParent) { in TEST() argument
41 Scope new_scope(setup.scope()); in TEST()
46 TEST(Scope, NonRecursiveMergeTo) { in TEST() argument
73 Scope new_scope(setup.settings()); in TEST()
79 &new_scope, Scope::MergeOptions(), &assignment, "error", &err)); in TEST()
85 Scope new_scope(setup.settings()); in TEST()
93 &new_scope, Scope::MergeOptions(), &assignment, "error", &err)); in TEST()
99 Scope new_scope(setup.settings()); in TEST()
[all …]
Dargs.h49 void AddArgOverrides(const Scope::KeyValueMap& overrides);
53 void AddDefaultArgOverrides(const Scope::KeyValueMap& overrides);
62 void SetupRootScope(Scope* dest,
63 const Scope::KeyValueMap& toolchain_overrides) const;
74 bool DeclareArgs(const Scope::KeyValueMap& args,
75 Scope* scope_to_set,
100 std::unordered_map<const Settings*, Scope::KeyValueMap>;
103 void SetSystemVarsLocked(Scope* scope) const;
106 void ApplyOverridesLocked(const Scope::KeyValueMap& values,
107 Scope* scope) const;
[all …]
Dvalue_unittest.cc36 Scope* scope = new Scope(setup.settings()); in TEST()
37 Value scopeval(nullptr, std::unique_ptr<Scope>(scope)); in TEST()
48 Scope* inner_scope = new Scope(setup.settings()); in TEST()
49 Value inner_scopeval(nullptr, std::unique_ptr<Scope>(inner_scope)); in TEST()
57 Scope* nested_scope = new Scope(scope); in TEST()
58 Value nested_scopeval(nullptr, std::unique_ptr<Scope>(nested_scope)); in TEST()
Dtemplate.cc18 Template::Template(const Scope* scope, const FunctionCallNode* def) in Template()
21 Template::Template(std::unique_ptr<Scope> scope, const FunctionCallNode* def) in Template()
26 Value Template::Invoke(Scope* scope, in Invoke()
39 std::unique_ptr<Scope> invocation_scope = std::make_unique<Scope>(scope); in Invoke()
64 Scope template_scope(closure_.get()); in Invoke()
85 Value(nullptr, std::unique_ptr<Scope>()), invocation); in Invoke()
87 variables::kInvoker, Scope::SEARCH_NESTED, false); in Invoke()
113 Scope::SEARCH_NESTED, false); in Invoke()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLexicalScopes.cpp124 DILocalScope *Scope = DL->getScope(); in findLexicalScope() local
125 if (!Scope) in findLexicalScope()
130 Scope = Scope->getNonLexicalBlockFileScope(); in findLexicalScope()
133 auto I = InlinedLexicalScopeMap.find(std::make_pair(Scope, IA)); in findLexicalScope()
136 return findLexicalScope(Scope); in findLexicalScope()
141 LexicalScope *LexicalScopes::getOrCreateLexicalScope(const DILocalScope *Scope, in getOrCreateLexicalScope() argument
145 if (Scope->getSubprogram()->getUnit()->getEmissionKind() == in getOrCreateLexicalScope()
149 getOrCreateAbstractScope(Scope); in getOrCreateLexicalScope()
151 return getOrCreateInlinedScope(Scope, IA); in getOrCreateLexicalScope()
154 return getOrCreateRegularScope(Scope); in getOrCreateLexicalScope()
[all …]
/third_party/typescript_eslint/packages/experimental-utils/src/ts-eslint-scope/
DScopeManager.ts4 import { Scope } from './Scope';
19 __currentScope: Scope;
20 __nodeToScope: WeakMap<TSESTree.Node, Scope[]>;
23 scopes: Scope[];
24 globalScope: Scope;
35 __get(node: TSESTree.Node): Scope | undefined;
37 acquire(node: TSESTree.Node, inner?: boolean): Scope | null;
38 acquireAll(node: TSESTree.Node): Scope | null;
39 release(node: TSESTree.Node, inner?: boolean): Scope | null;
43 __nestScope<T extends Scope>(scope: T): T;
[all …]
DScope.ts4 Scope as ESLintScope,
37 interface Scope { interface
40 upper: Scope | null;
41 childScopes: Scope[];
42 variableScope: Scope;
58 __close(scopeManager: ScopeManager): Scope;
120 upperScope: Scope | null,
123 ): Scope;
125 const Scope = ESLintScope as ScopeConstructor; constant
130 upperScope: Scope,
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dno-shadow.ts74 function isGlobalAugmentation(scope: TSESLint.Scope.Scope): boolean {
84 function isThisParam(variable: TSESLint.Scope.Variable): boolean {
89 variable: TSESLint.Scope.Variable,
90 shadowed: TSESLint.Scope.Variable,
107 variable: TSESLint.Scope.Variable,
108 shadowed: TSESLint.Scope.Variable,
134 function isAllowed(variable: TSESLint.Scope.Variable): boolean {
147 variable: TSESLint.Scope.Variable,
166 variable: TSESLint.Scope.Variable,
186 variable: TSESLint.Scope.Variable,
[all …]
Dno-use-before-define.ts45 function isFunction(variable: TSESLint.Scope.Variable): boolean {
52 function isTypedef(variable: TSESLint.Scope.Variable): boolean {
60 variable: TSESLint.Scope.Variable,
61 reference: TSESLint.Scope.Reference,
73 variable: TSESLint.Scope.Variable,
74 reference: TSESLint.Scope.Reference,
86 variable: TSESLint.Scope.Variable,
87 reference: TSESLint.Scope.Reference,
119 function isTypeReference(reference: TSESLint.Scope.Reference): boolean {
147 variable: TSESLint.Scope.Variable,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DControlHeightReduction.cpp330 for (CHRScope *Scope : Scopes) { in ~CHR()
331 delete Scope; in ~CHR()
343 CHRScope *Scope = findScopes(R, nullptr, nullptr, Output); in findScopes() local
344 if (Scope) { in findScopes()
345 Output.push_back(Scope); in findScopes()
351 void checkScopeHoistable(CHRScope *Scope);
355 SmallVector<CHRScope *, 8> splitScope(CHRScope *Scope,
363 void classifyBiasedScopes(CHRScope *Scope, CHRScope *OutermostScope);
370 void setCHRRegions(CHRScope *Scope, CHRScope *OutermostScope);
376 void transformScopes(CHRScope *Scope, DenseSet<PHINode *> &TrivialPHIs);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DLLVMContextImpl.h281 Metadata *Scope;
285 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope,
287 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt),
290 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()),
295 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() &&
300 return hash_combine(Line, Column, Scope, InlinedAt, ImplicitCode);
410 Metadata *Scope;
420 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits,
424 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope),
430 Line(N->getLine()), Scope(N->getRawScope()),
[all …]
DDebugInfo.cpp43 DISubprogram *llvm::getDISubprogram(const MDNode *Scope) { in getDISubprogram() argument
44 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram()
148 void DebugInfoFinder::processScope(DIScope *Scope) { in processScope() argument
149 if (!Scope) in processScope()
151 if (auto *Ty = dyn_cast<DIType>(Scope)) { in processScope()
155 if (auto *CU = dyn_cast<DICompileUnit>(Scope)) { in processScope()
159 if (auto *SP = dyn_cast<DISubprogram>(Scope)) { in processScope()
163 if (!addScope(Scope)) in processScope()
165 if (auto *LB = dyn_cast<DILexicalBlockBase>(Scope)) { in processScope()
167 } else if (auto *NS = dyn_cast<DINamespace>(Scope)) { in processScope()
[all …]
/third_party/typescript_eslint/packages/experimental-utils/src/ast-utils/eslint-utils/
DscopeAnalysis.ts11 initialScope: TSESLint.Scope.Scope,
13 ) => TSESLint.Scope.Variable | null;
23 initialScope: TSESLint.Scope.Scope,
25 ) => TSESLint.Scope.Scope;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/Mips/
DMipsGenDAGISel.inc60 /* 7*/ OPC_Scope, 67|128,1/*195*/, /*->205*/ // 3 children in Scope
62 /* 11*/ OPC_Scope, 110, /*->123*/ // 2 children in Scope
64 /* 15*/ OPC_Scope, 67, /*->84*/ // 2 children in Scope
68 /* 22*/ OPC_Scope, 14, /*->38*/ // 4 children in Scope
76 /* 38*/ /*Scope*/ 14, /*->53*/
84 /* 53*/ /*Scope*/ 14, /*->68*/
92 /* 68*/ /*Scope*/ 14, /*->83*/
100 /* 83*/ 0, /*End of Scope*/
101 /* 84*/ /*Scope*/ 37, /*->122*/
109 /* 96*/ OPC_Scope, 11, /*->109*/ // 2 children in Scope
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/ARM/
DARMGenDAGISel.inc58 /* 5*/ OPC_Scope, 101|128,5/*741*/, /*->749*/ // 26 children in Scope
60 /* 9*/ OPC_Scope, 74, /*->85*/ // 9 children in Scope
81 /* 47*/ OPC_Scope, 17, /*->66*/ // 2 children in Scope
89 /* 66*/ /*Scope*/ 17, /*->84*/
97 /* 84*/ 0, /*End of Scope*/
98 /* 85*/ /*Scope*/ 74, /*->160*/
119 /* 122*/ OPC_Scope, 17, /*->141*/ // 2 children in Scope
127 /* 141*/ /*Scope*/ 17, /*->159*/
135 /* 159*/ 0, /*End of Scope*/
136 /* 160*/ /*Scope*/ 53, /*->214*/
[all …]
/third_party/typescript_eslint/packages/scope-manager/tests/util/
Dexpect.ts22 Scope,
32 function expectToBeBlockScope(scope: Scope): asserts scope is BlockScope {
35 function expectToBeCatchScope(scope: Scope): asserts scope is CatchScope {
38 function expectToBeClassScope(scope: Scope): asserts scope is ClassScope {
41 function expectToBeForScope(scope: Scope): asserts scope is ForScope {
44 function expectToBeFunctionScope(scope: Scope): asserts scope is FunctionScope {
48 scope: Scope,
52 function expectToBeGlobalScope(scope: Scope): asserts scope is GlobalScope {
55 function expectToBeModuleScope(scope: Scope): asserts scope is ModuleScope {
58 function expectToBeSwitchScope(scope: Scope): asserts scope is SwitchScope {
[all …]
/third_party/flutter/skia/src/gpu/glsl/
DGrGLSLVarying.h37 enum class Scope { enum
44 GrGLSLVarying(GrSLType type, Scope scope = Scope::kVertToFrag)
51 void reset(GrSLType type, Scope scope = Scope::kVertToFrag) {
60 Scope scope() const { return fScope; } in scope()
61 bool isInVertexShader() const { return Scope::kGeoToFrag != fScope; } in isInVertexShader()
62 bool isInFragmentShader() const { return Scope::kVertToGeo != fScope; } in isInFragmentShader()
71 Scope fScope = Scope::kVertToFrag;
/third_party/skia/src/gpu/glsl/
DGrGLSLVarying.h37 enum class Scope { enum
44 GrGLSLVarying(GrSLType type, Scope scope = Scope::kVertToFrag)
51 void reset(GrSLType type, Scope scope = Scope::kVertToFrag) {
60 Scope scope() const { return fScope; } in scope()
61 bool isInVertexShader() const { return Scope::kGeoToFrag != fScope; } in isInVertexShader()
62 bool isInFragmentShader() const { return Scope::kVertToGeo != fScope; } in isInFragmentShader()
79 Scope fScope = Scope::kVertToFrag;
/third_party/typescript_eslint/packages/scope-manager/src/scope/
DScopeBase.ts6 import { Scope } from './Scope';
24 scope: Scope,
114 function registerScope(scopeManager: ScopeManager, scope: Scope): void {
136 type AnyScope = ScopeBase<ScopeType, TSESTree.Node, Scope | null>;
140 TUpper extends Scope | null
156 public readonly childScopes: Scope[] = [];
234 const upperScopeAsScopeBase = upperScope as Scope;
249 this.isStrict = isStrictScope(this as Scope, block, isMethodDefinition);
253 upperScopeAsScopeBase.childScopes.push(this as Scope);
258 registerScope(scopeManager, this as Scope);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/PowerPC/
DPPCGenDAGISel.inc60 /* 7*/ OPC_Scope, 127|128,28/*3711*/, /*->3721*/ // 2 children in Scope
64 /* 15*/ OPC_Scope, 78, /*->95*/ // 18 children in Scope
67 /* 21*/ OPC_Scope, 35, /*->58*/ // 2 children in Scope
84 /* 58*/ /*Scope*/ 35, /*->94*/
101 /* 94*/ 0, /*End of Scope*/
102 /* 95*/ /*Scope*/ 78, /*->174*/
105 /* 100*/ OPC_Scope, 35, /*->137*/ // 2 children in Scope
122 /* 137*/ /*Scope*/ 35, /*->173*/
139 /* 173*/ 0, /*End of Scope*/
140 /* 174*/ /*Scope*/ 109|128,5/*749*/, /*->925*/
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
DThread.hpp40 class Scope class
43 using ID = dbg::ID<Scope>;
45 inline Scope(ID id,
59 Scope::Scope(ID id, in Scope() function in vk::dbg::Scope
87 std::shared_ptr<Scope> arguments;
90 std::shared_ptr<Scope> locals;
93 std::shared_ptr<Scope> registers;
96 std::shared_ptr<Scope> hovers;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDIBuilder.h270 DIDerivedType *createMemberType(DIScope *Scope, StringRef Name,
290 DIDerivedType *createVariantMemberType(DIScope *Scope, StringRef Name,
309 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
323 DIDerivedType *createStaticMemberType(DIScope *Scope, StringRef Name,
377 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber,
395 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNumber,
411 DICompositeType *createUnionType(DIScope *Scope, StringRef Name,
432 DICompositeType *createVariantPart(DIScope *Scope, StringRef Name,
446 createTemplateTypeParameter(DIScope *Scope, StringRef Name, DIType *Ty);
454 DITemplateValueParameter *createTemplateValueParameter(DIScope *Scope,
[all …]

12345678910>>...21