/third_party/gn/src/gn/ |
H A D | function_toolchain_unittest.cc | 23 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 33 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 54 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 83 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 103 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 130 input.parsed()->Execute(setup.scope(), &err); in TEST_F() 147 input.parsed()->Execute(setup.scope(), &err); in TEST_F()
|
H A D | function_filter_labels.cc | 12 #include "gn/scope.h" 23 Value RunFilterLabels(Scope* scope, in RunFilterLabels() argument 53 scope->GetSourceDir(), in RunFilterLabels() 54 scope->settings()->build_settings()->root_path_utf8(), value, err); in RunFilterLabels() 65 Label::Resolve(scope->GetSourceDir(), in RunFilterLabels() 66 scope->settings()->build_settings()->root_path_utf8(), in RunFilterLabels() 67 ToolchainLabelForScope(scope), value, err); in RunFilterLabels() 111 Value RunFilterLabelsInclude(Scope* scope, 115 return RunFilterLabels(scope, function, args, kIncludeFilter, err); 138 Value RunFilterLabelsExclude(Scope* scope, [all...] |
H A D | parse_tree.h | 95 virtual Value Execute(Scope* scope, Err* err) const = 0; 134 // Access an array or scope element. 146 // of a constant scope. Supporting this would also add a lot of complications 148 // in the const root scope that shouldn't be modified. Without a strong 163 Value Execute(Scope* scope, Err* err) const override; 193 bool ComputeAndValidateListIndex(Scope* scope, 201 Value ExecuteSubscriptAccess(Scope* scope, Err* err) const; 202 Value ExecuteArrayAccess(Scope* scope, 205 Value ExecuteScopeSubscriptAccess(Scope* scope, 208 Value ExecuteScopeAccess(Scope* scope, Er [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/plugincomponent/ |
H A D | js_plugin_callback.cpp | 203 napi_handle_scope scope = nullptr; in OnPushEventInner() local 213 napi_open_handle_scope(cbInfo_.env, &scope); in OnPushEventInner() 214 if (scope == nullptr) { in OnPushEventInner() 215 napi_close_handle_scope(cbInfo_.env, scope); in OnPushEventInner() 231 napi_close_handle_scope(cbInfo_.env, scope); in OnPushEventInner() 274 napi_handle_scope scope = nullptr; in OnRequestEventInner() local 280 napi_open_handle_scope(cbInfo_.env, &scope); in OnRequestEventInner() 281 if (scope == nullptr) { in OnRequestEventInner() 282 napi_close_handle_scope(cbInfo_.env, scope); in OnRequestEventInner() 297 napi_close_handle_scope(cbInfo_.env, scope); in OnRequestEventInner() 339 napi_handle_scope scope = nullptr; OnRequestCallBackInner() local [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-object.cc | 24 HandleScope scope(isolate); in BUILTIN() 40 HandleScope scope(isolate); in BUILTIN() 51 HandleScope scope(isolate); in BUILTIN() 179 HandleScope scope(isolate); in BUILTIN() 189 HandleScope scope(isolate); in BUILTIN() 199 HandleScope scope(isolate); in BUILTIN() 208 HandleScope scope(isolate); in BUILTIN() 216 HandleScope scope(isolate); in BUILTIN() 228 HandleScope scope(isolate); in BUILTIN() 241 HandleScope scope(isolat in BUILTIN() [all...] |
/third_party/skia/src/core/ |
H A D | SkTraceEventCommon.h | 73 #define TRACE_EVENT_INSTANT0(cg, n, scope) TRACE_EMPTY 74 #define TRACE_EVENT_INSTANT1(cg, n, scope, a1n, a1v) TRACE_EMPTY 75 #define TRACE_EVENT_INSTANT2(cg, n, scope, a1n, a1v, a2n, a2v) TRACE_EMPTY 148 // Records a pair of begin and end events called "name" for the current scope, with 0, 1 or 2 161 #define TRACE_EVENT_INSTANT0(category_group, name, scope) \ 164 #define TRACE_EVENT_INSTANT1(category_group, name, scope, arg1_name, arg1_val) \ 167 #define TRACE_EVENT_INSTANT2(category_group, name, scope, arg1_name, arg1_val, \ 214 // Records a pair of begin and end events called "name" for the current scope, with 0, 1 or 2 237 #define TRACE_EVENT_INSTANT0(category_group, name, scope) TRACE_EMPTY 238 #define TRACE_EVENT_INSTANT1(category_group, name, scope, arg1_nam [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/form/resource/ |
H A D | form_callback_client.h | 34 ContainerScope scope(instanceId_); 51 ContainerScope scope(instanceId_); 68 ContainerScope scope(instanceId_); 85 ContainerScope scope(instanceId_); 112 ContainerScope scope(instanceId_); 130 ContainerScope scope(instanceId_);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_video_controller.cpp | 75 ContainerScope scope(instanceId_); in Start() 86 ContainerScope scope(instanceId_); in Pause() 94 ContainerScope scope(instanceId_); in Stop() 102 ContainerScope scope(instanceId_); in SetCurrentTime() 121 ContainerScope scope(instanceId_); in RequestFullscreen() 135 ContainerScope scope(instanceId_); in ExitFullscreen()
|
H A D | js_animator.cpp | 193 ContainerScope scope(Container::CurrentIdSafely()); in Create() 209 ContainerScope scope(Container::CurrentIdSafely()); in SetState() 246 ContainerScope scope(Container::CurrentIdSafely()); in SetDuration() 256 ContainerScope scope(Container::CurrentIdSafely()); in SetCurve() 275 ContainerScope scope(Container::CurrentIdSafely()); in SetDelay() 285 ContainerScope scope(Container::CurrentIdSafely()); in SetFillMode() 295 ContainerScope scope(Container::CurrentIdSafely()); in SetIteration() 305 ContainerScope scope(Container::CurrentIdSafely()); in SetPlayMode() 315 ContainerScope scope(Container::CurrentIdSafely()); in SetMotion() 334 ContainerScope scope(Containe in OnStart() [all...] |
/foundation/multimedia/player_framework/frameworks/js/player/ |
H A D | player_callback_napi.cpp | 304 napi_handle_scope scope = nullptr; in OnJsCallBack() 305 napi_open_handle_scope(ref->env_, &scope); in OnJsCallBack() 306 CHECK_AND_BREAK_LOG(scope != nullptr, "%{public}s scope is nullptr", request.c_str()); in OnJsCallBack() 308 napi_close_handle_scope(ref->env_, scope); in OnJsCallBack() 356 napi_handle_scope scope = nullptr; in OnJsCallBackError() 357 napi_open_handle_scope(ref->env_, &scope); in OnJsCallBackError() 358 CHECK_AND_BREAK_LOG(scope != nullptr, "%{public}s scope is nullptr", request.c_str()); in OnJsCallBackError() 360 napi_close_handle_scope(ref->env_, scope); in OnJsCallBackError() [all...] |
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-wasm.cc | 6 #include "src/common/assert-scope.h" 107 HandleScope scope(isolate); in RUNTIME_FUNCTION() 131 HandleScope scope(isolate); in RUNTIME_FUNCTION() 148 HandleScope scope(isolate); in RUNTIME_FUNCTION() 167 HandleScope scope(isolate); in RUNTIME_FUNCTION() 175 HandleScope scope(isolate); in RUNTIME_FUNCTION() 192 HandleScope scope(isolate); in RUNTIME_FUNCTION() 212 HandleScope scope(isolate); in RUNTIME_FUNCTION() 251 HandleScope scope(isolate); in RUNTIME_FUNCTION() 303 HandleScope scope(isolat in RUNTIME_FUNCTION() [all...] |
/third_party/node/deps/v8/src/parsing/ |
H A D | preparser.h | 316 void set_scope(Scope* scope) {} in set_scope() argument 471 void set_scope(Scope* scope) {} in set_scope() argument 497 // A PreParserBlock extends statement with a place to store the scope. 498 // The scope is dropped as the block is returned as a statement. 501 void set_scope(Scope* scope) { scope_ = scope; } in set_scope() argument 502 Scope* scope() const { return scope_; } in scope() function in v8::internal::PreParserBlock 678 const PreParserIdentifier& name, Scope* scope, in NewFunctionLiteral() 746 PreParserStatement NewWithStatement(Scope* scope, in NewWithStatement() argument 811 explicit PreParserFormalParameters(DeclarationScope* scope) in PreParserFormalParameters() argument 677 NewFunctionLiteral( const PreParserIdentifier& name, Scope* scope, const PreParserScopedStatementList& body, int expected_property_count, int parameter_count, int function_length, FunctionLiteral::ParameterFlag has_duplicate_parameters, FunctionSyntaxKind function_syntax_kind, FunctionLiteral::EagerCompileHint eager_compile_hint, int position, bool has_braces, int function_literal_id, ProducedPreparseData* produced_preparse_data = nullptr) NewFunctionLiteral() argument 1046 SetLanguageMode(Scope* scope, LanguageMode mode) SetLanguageMode() argument 1061 RewriteSwitchStatement(PreParserStatement switch_statement, Scope* scope) RewriteSwitchStatement() argument 1065 DeclareVariable(const AstRawString* name, VariableKind kind, VariableMode mode, InitializationFlag init, Scope* scope, bool* was_added, int position) DeclareVariable() argument 1071 DeclareAndBindVariable(const VariableProxy* proxy, VariableKind kind, VariableMode mode, Scope* scope, bool* was_added, int initializer_position) DeclareAndBindVariable() argument 1080 DeclarePrivateVariableName(const AstRawString* name, ClassScope* scope, VariableMode mode, IsStaticFlag is_static_flag, bool* was_added) DeclarePrivateVariableName() argument 1088 DeclareVariableName(const AstRawString* name, VariableMode mode, Scope* scope, bool* was_added, int position = kNoSourcePosition, VariableKind kind = NORMAL_VARIABLE) DeclareVariableName() argument 1114 ReportVarRedeclarationIn(const AstRawString* name, Scope* scope) ReportVarRedeclarationIn() argument 1190 DeclareClassVariable(ClassScope* scope, const PreParserIdentifier& name, ClassInfo* class_info, int class_token_pos) DeclareClassVariable() argument 1204 DeclarePublicClassField(ClassScope* scope, const PreParserExpression& property, bool is_static, bool is_computed_name, ClassInfo* class_info) DeclarePublicClassField() argument 1213 VariableMode::kConst, scope, &was_added); DeclarePublicClassField() local 1217 DeclarePrivateClassMember( ClassScope* scope, const PreParserIdentifier& property_name, const PreParserExpression& property, ClassLiteralProperty::Kind kind, bool is_static, ClassInfo* class_info) DeclarePrivateClassMember() argument 1240 RewriteClassLiteral(ClassScope* scope, const PreParserIdentifier& name, ClassInfo* class_info, int pos, int end_pos) RewriteClassLiteral() argument 1436 InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope) InsertSloppyBlockFunctionVarBindings() argument 1589 DeclareCatchVariableName( Scope* scope, const PreParserIdentifier& identifier) DeclareCatchVariableName() argument 1622 DeclarationScope* scope = parameters->scope; AddFormalParameter() local [all...] |
H A D | preparser.cc | 11 #include "src/logging/runtime-call-stats-scope.h" 74 DeclarationScope* scope = NewScriptScope(REPLMode::kNo); in PreParseProgram() local 76 scope->set_is_being_lazily_parsed(true); in PreParseProgram() 81 // the global scope. in PreParseProgram() 82 if (flags().is_module()) scope = NewModuleScope(scope); in PreParseProgram() 84 FunctionState top_scope(&function_state_, &scope_, scope); in PreParseProgram() 89 CheckConflictingVarDeclarations(scope); in PreParseProgram() 124 // scope stack. All scopes above the function_scope are ignored by the in PreParseFunction() 321 AcceptINScope scope(thi in ParseFunctionLiteral() [all...] |
/foundation/ability/dmsfwk/interfaces/kits/napi/continuation_manager/ |
H A D | js_device_selection_listener.cpp | 79 napi_handle_scope scope = nullptr; in CallJsMethod() 80 napi_open_handle_scope(env, &scope); in CallJsMethod() 81 if (scope == nullptr) { in CallJsMethod() 87 napi_close_handle_scope(env, scope); in CallJsMethod() 124 napi_handle_scope scope = nullptr; in CallJsMethod() 125 napi_open_handle_scope(env, &scope); in CallJsMethod() 126 if (scope == nullptr) { in CallJsMethod() 131 napi_close_handle_scope(env, scope); in CallJsMethod()
|
/foundation/multimedia/player_framework/frameworks/js/metadatahelper/ |
H A D | avmetadatahelper_callback.cpp | 42 napi_handle_scope scope = nullptr; in UvWork() local 43 napi_open_handle_scope(ref->env_, &scope); in UvWork() 44 CHECK_AND_RETURN_LOG(scope != nullptr, in UvWork() 45 "%{public}s scope is nullptr", callbackName.c_str()); in UvWork() 47 napi_close_handle_scope(ref->env_, scope); in UvWork() 77 napi_handle_scope scope = nullptr; variable 78 napi_open_handle_scope(ref->env_, &scope); 79 CHECK_AND_RETURN_LOG(scope != nullptr, 80 "%{public}s scope is nullptr", callbackName.c_str()); 82 napi_close_handle_scope(ref->env_, scope); [all...] |
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/ |
H A D | n_async_work_callback.cpp | 90 napi_handle_scope scope = nullptr; in CallbackComplete() local 91 napi_open_handle_scope(env, &scope); in CallbackComplete() 95 napi_close_handle_scope(env, scope); in CallbackComplete() 118 napi_close_handle_scope(env, scope); in CallbackComplete() 155 napi_handle_scope scope = nullptr; in AfterWorkCallback() local 156 napi_open_handle_scope(env, &scope); in AfterWorkCallback() 160 napi_close_handle_scope(env, scope); in AfterWorkCallback() 184 napi_close_handle_scope(env, scope); in AfterWorkCallback()
|
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | trace-event.h | 62 // const char* scope, 124 nullptr /* scope */, 0 /* id */, 0 /* bind_id */, flags, platform, \ 141 const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, 155 return controller->AddTraceEvent(phase, category_group_enabled, name, scope, 195 const char* name, const char* scope, 200 phase, category_group_enabled, name, scope, id, bind_id, 0 /* num_args */, 207 const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, 214 phase, category_group_enabled, name, scope, id, bind_id, num_args, 221 const char* scope, uint64_t id, uint64_t bind_id, unsigned int flags, 233 phase, category_group_enabled, name, scope, i [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | parserRealSource8.js | 16 export function pushAssignScope(scope: SymbolScope, 22 var chain = new ScopeChain(null, context.scopeChain, scope); 92 aggScope.addParentScope(context.scopeChain.scope); 117 aggScope.addParentScope(context.scopeChain.scope); 127 aggScope.addParentScope(context.scopeChain.scope); 151 aggScope.addParentScope(context.scopeChain.scope); 171 var withScope = new TypeScript.SymbolScopeBuilder(withType.members, withType.ambientMembers, null, null, context.scopeChain.scope, withType.symbol); 188 // for inner static functions, use the parent's member scope, so local vars cannot be captured 189 var parentScope = isInnerStatic ? context.scopeChain.fnc.type.memberScope : context.scopeChain.scope; 192 // the enclosing scope [all...] |
/third_party/selinux/checkpolicy/ |
H A D | module_compiler.c | 137 * current scope stack then this would return a 0. 147 /* Attempt to declare or require a symbol within the current scope. 156 uint32_t * dest_value, uint32_t scope) in create_symbol() 165 ret = symtab_insert(policydbp, symbol_type, key, datum, scope, in create_symbol() 208 if (ebitmap_set_bit(decl->declared.scope + symbol_type, in declare_symbol() 253 static int create_role(uint32_t scope, unsigned char isattr, role_datum_t **role, char **key) in create_role() argument 279 if (scope == SCOPE_DECL) { in create_role() 388 static int create_type(uint32_t scope, unsigned char isattr, type_datum_t **type) in create_type() argument 419 if (scope == SCOPE_DECL) { in create_type() 498 static int create_user(uint32_t scope, user_datum_ argument 155 create_symbol(uint32_t symbol_type, hashtab_key_t key, hashtab_datum_t datum, uint32_t * dest_value, uint32_t scope) create_symbol() argument 739 scope_index_t *scope; add_perm_to_class() local 1116 is_scope_in_stack(const scope_datum_t * scope, const scope_stack_t * stack) is_scope_in_stack() argument 1140 const scope_datum_t *scope = is_id_in_scope() local 1149 is_perm_in_scope_index(uint32_t perm_value, uint32_t class_value, const scope_index_t * scope) is_perm_in_scope_index() argument [all...] |
/foundation/arkui/napi/test/unittest/cj_native/ |
H A D | test_ark_interop.cpp | 51 auto scope = ARKTS_OpenScope(env); in TEST_F() local 70 ARKTS_CloseScope(env, scope); in TEST_F() 76 auto scope = ARKTS_OpenScope(env); in TEST_F() local 97 ARKTS_CloseScope(env, scope); in TEST_F() 103 auto scope = ARKTS_OpenScope(env); in TEST_F() local 131 ARKTS_CloseScope(env, scope); in TEST_F() 137 auto scope = ARKTS_OpenScope(env); in TEST_F() local 158 ARKTS_CloseScope(env, scope); in TEST_F() 171 auto scope = ARKTS_OpenScope(env); in TEST_F() local 216 ARKTS_CloseScope(env, scope); in TEST_F() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_distributor.cpp | 134 const std::string &scope = message->GetMessage(NetsysEventMessage::Type::SCOPE); in HandleAddressChange() local 137 if (!iface.empty() && iface[0] && !address.empty() && !flags.empty() && !scope.empty()) { in HandleAddressChange() 139 NotifyInterfaceAddressUpdate(address, iface, ConvertToInt64(flags), ConvertToInt64(scope)); in HandleAddressChange() 141 NotifyInterfaceAddressRemove(address, iface, ConvertToInt64(flags), ConvertToInt64(scope)); in HandleAddressChange() 244 int32_t flags, int32_t scope) in NotifyInterfaceAddressUpdate() 247 ToAnonymousIp(addr).c_str(), ifName.c_str(), flags, scope); in NotifyInterfaceAddressUpdate() 255 callback->OnInterfaceAddressUpdated(addr, ifName, flags, scope); in NotifyInterfaceAddressUpdate() 261 int32_t flags, int32_t scope) in NotifyInterfaceAddressRemove() 264 ToAnonymousIp(addr).c_str(), ifName.c_str(), flags, scope); in NotifyInterfaceAddressRemove() 272 callback->OnInterfaceAddressRemoved(addr, ifName, flags, scope); in NotifyInterfaceAddressRemove() 243 NotifyInterfaceAddressUpdate(const std::string &addr, const std::string &ifName, int32_t flags, int32_t scope) NotifyInterfaceAddressUpdate() argument 260 NotifyInterfaceAddressRemove(const std::string &addr, const std::string &ifName, int32_t flags, int32_t scope) NotifyInterfaceAddressRemove() argument [all...] |
/third_party/node/deps/v8/src/execution/ |
H A D | stack-guard.cc | 9 #include "src/execution/interrupts-scope.h" 79 void StackGuard::PushInterruptsScope(InterruptsScope* scope) { in PushInterruptsScope() argument 81 DCHECK_NE(scope->mode_, InterruptsScope::kNoop); in PushInterruptsScope() 82 if (scope->mode_ == InterruptsScope::kPostponeInterrupts) { in PushInterruptsScope() 85 thread_local_.interrupt_flags_ & scope->intercept_mask_; in PushInterruptsScope() 86 scope->intercepted_flags_ = intercepted; in PushInterruptsScope() 89 DCHECK_EQ(scope->mode_, InterruptsScope::kRunInterrupts); in PushInterruptsScope() 94 restored_flags |= (current->intercepted_flags_ & scope->intercept_mask_); in PushInterruptsScope() 95 current->intercepted_flags_ &= ~scope->intercept_mask_; in PushInterruptsScope() 102 // Add scope t in PushInterruptsScope() [all...] |
/third_party/selinux/libsepol/tests/ |
H A D | test-common.c | 34 scope_datum_t *scope; in test_sym_presence() local 42 /* make sure its scope is correct */ in test_sym_presence() 43 scope = hashtab_search(p->scope[sym_type].table, id); in test_sym_presence() 44 CU_ASSERT_FATAL(scope != NULL); in test_sym_presence() 45 CU_ASSERT(scope->scope == scope_type); in test_sym_presence() 46 CU_ASSERT(scope->decl_ids_len == len); in test_sym_presence() 47 if (scope->decl_ids_len != len) in test_sym_presence() 48 fprintf(stderr, "sym %s has %d decls, %d expected\n", id, scope in test_sym_presence() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getscope/ |
H A D | 1-1.c | 15 * NOTE: The contension scope value is a may requirement. 34 int scope; in verify_scope() local 36 rc = pthread_attr_getscope(attr, &scope); in verify_scope() 43 if (scope != SYSTEMSCOPE) { in verify_scope() 44 perror(ERROR_PREFIX "got wrong scope param"); in verify_scope() 49 if (scope != PROCESSSCOPE) { in verify_scope() 50 perror(ERROR_PREFIX "got wrong scope param"); in verify_scope()
|
/foundation/arkui/ace_engine/adapter/preview/entrance/ |
H A D | ace_container.cpp | 115 ContainerScope scope(instanceId_); in Initialize() 123 ContainerScope scope(instanceId_); in Destroy() 258 ContainerScope scope(instanceId); in SetHspBufferTrackerCallback() 277 ContainerScope scope(instanceId); in SetMockModuleListToJsEngine() 318 ContainerScope scope(id); in InitializeCallback() 330 ContainerScope scope(id); in InitializeCallback() 346 ContainerScope scope(id); in InitializeCallback() 360 ContainerScope scope(id); in InitializeCallback() 372 ContainerScope scope(id); in InitializeCallback() 386 ContainerScope scope(instanceI in InitializeCallback() [all...] |