/haiku-buildtools/gcc/gcc/testsuite/go.test/test/fixedbugs/ |
H A D | bug066.go | 15 scope *Scope; 24 func Lookup(scope *Scope) *Object { 25 return scope.entries["foo"];
|
H A D | bug085.go | 21 /* expected scope hierarchy (outermost to innermost) 23 universe scope (contains predeclared identifiers int, float32, int32, len, etc.) 24 "solar" scope (just holds the package name P so it can be found but doesn't conflict) 25 global scope (the package global scope)
|
/haiku-buildtools/gcc/gcc/cp/ |
H A D | name-lookup.c | 48 /* The bindings for a particular name in a particular scope. */ 138 a given scope. */ 323 binding->scope = NULL; 329 bindings) in the class scope indicated by SCOPE. */ 332 new_class_binding (tree name, tree value, tree type, cp_binding_level *scope) 336 vec_safe_push (scope->class_shadowed, cb); 337 binding->scope = scope; 352 binding->scope = level; 408 the current scope 331 new_class_binding(tree name, tree value, tree type, cp_binding_level *scope) argument 1154 cp_binding_level *scope = current_binding_level; local 1484 cp_binding_level_descriptor(cp_binding_level *scope) argument 1509 cp_binding_level_debug(cp_binding_level *scope, int line, const char *action) argument 1541 push_binding_level(cp_binding_level *scope) argument 1565 cp_binding_level *scope; local 1627 cp_binding_level *scope = current_binding_level; local 2129 find_binding(cp_binding_level *scope, cxx_binding *binding) argument 2141 cp_binding_level_find_binding_for_name(cp_binding_level *scope, tree name) argument 2158 binding_for_name(cp_binding_level *scope, tree name) argument 2249 push_using_decl_1(tree scope, tree name) argument 2270 push_using_decl(tree scope, tree name) argument 2510 validate_nonmember_using_decl(tree decl, tree scope, tree name) argument 2566 do_nonmember_using_decl(tree scope, tree name, tree oldval, tree oldtype, tree *newval, tree *newtype) argument 2713 do_local_using_decl(tree decl, tree scope, tree name) argument 3073 get_class_binding(tree name, cp_binding_level *scope) argument 3199 tree scope = context_for_name_lookup (x); local 3328 do_class_using_decl(tree scope, tree name) argument 3445 namespace_binding_1(tree name, tree scope) argument 3461 namespace_binding(tree name, tree scope) argument 3473 set_namespace_binding_1(tree name, tree scope, tree val) argument 3489 set_namespace_binding(tree name, tree scope, tree val) argument 3500 set_decl_namespace(tree decl, tree scope, bool friendp) argument 4009 do_toplevel_using_decl(tree decl, tree scope, tree name) argument 4407 tree scope = namespaces_to_search.pop (); local 4457 tree scope = initial; local 4523 lookup_qualified_name(tree scope, tree name, bool is_type_p, bool complain) argument 4555 lookup_using_namespace(tree name, struct scope_binding *val, tree usings, tree scope, int flags) argument 4595 qualified_lookup_using_namespace(tree name, tree scope, struct scope_binding *result, int flags) argument 4679 binding_to_template_parms_of_scope_p(cxx_binding *binding, cp_binding_level *scope) argument 4728 cp_binding_level *scope; local 4998 lookup_type_scope_1(tree name, tag_scope scope) argument 5076 lookup_type_scope(tree name, tag_scope scope) argument 5254 is_associated_namespace(tree current, tree scope) argument 5294 arg_assoc_namespace(struct arg_lookup *k, tree scope) argument 5867 pushtag_1(tree name, tree type, tag_scope scope) argument 6015 pushtag(tree name, tree type, tag_scope scope) argument [all...] |
H A D | search.c | 158 true, consider any special access of the current scope, or access 176 public typedef created in the scope of every class. */ 505 NAMESPACE_DECL corresponding to the innermost non-block scope. */ 524 function. If so, we know to put the decls into the class's scope. */ 540 /* Returns nonzero if we are currently in a function scope. Note 555 /* Returns true if the innermost active scope is a class scope. */ 564 /* Returns true if the innermost active scope is a namespace scope. */ 573 /* Return the scope o 778 friend_accessible_p(tree scope, tree decl, tree binfo) argument 835 tree scope = current_scope (); local 869 tree scope; local 1783 tree scope; local [all...] |
H A D | parser.c | 399 fprintf (file, "{ status = %s, scope = ", status_s[c->status]); 528 cp_debug_print_tree_if_set (file, "Lookup scope", parser->scope); 529 cp_debug_print_tree_if_set (file, "Object scope", 531 cp_debug_print_tree_if_set (file, "Qualifying scope", 577 cp_debug_print_flag (file, "Auto correct a colon to a scope operator", 1684 keeps track of what scope is presently active; everything else 1686 initializers may also need to set the scope, in order to check 2637 if (parser->scope && parser->scope ! 5001 tree scope; local 5631 tree scope; local 5677 tree scope; local 6646 tree scope = NULL_TREE; local 7038 cp_parser_pseudo_destructor_name(cp_parser* parser, tree object, tree* scope, tree* type) argument 10402 tree init, scope, decl; local 10418 cp_parser_c_for(cp_parser *parser, tree scope, tree init, bool ivdep) argument 10462 cp_parser_range_for(cp_parser *parser, tree scope, tree init, tree range_decl, bool ivdep) argument 14091 tree scope = ovl_scope (decl); local 16967 tree scope; local 17500 tree scope = NULL_TREE; local 19650 tree scope; local 19810 tree scope = NULL_TREE; local 20248 tree scope; local 20341 tree scope; local 23088 tree scope = declarator->u.id.qualifying_scope; local 28550 tree scope = parser->scope; local 33599 cp_binding_level *scope = entry_scope; local [all...] |
H A D | semantics.c | 277 is the BINFO indicating the qualifying scope used to access the 458 /* Finish a scope. */ 479 /* Begin a new scope. */ 491 when the current scope is exited. EH_ONLY is true when this is not 731 tree r, scope; local 732 scope = do_pushlevel (sk_cond); 734 NULL_TREE, NULL_TREE, scope); 782 tree scope = IF_SCOPE (if_stmt); local 784 add_stmt (do_poplevel (scope)); 923 /* Begin the scope o 930 tree scope = NULL_TREE; local 947 begin_for_stmt(tree scope, tree init) argument 1050 tree scope; local 1066 begin_range_for_stmt(tree scope, tree init) argument 1135 tree r, scope; local 1202 tree scope; local 1722 tree scope = qualifying_scope; local 1846 tree scope; local 2513 finish_pseudo_destructor_expr(tree object, tree scope, tree destructor, location_t loc) argument 3064 tree scope; local 3252 finish_id_expression(tree id_expression, tree decl, tree scope, cp_id_kind *idk, bool integral_constant_expression_p, bool allow_non_integral_constant_expression_p, bool *non_integral_constant_expression_p, bool template_p, bool done, bool address_p, bool template_arg_p, const char **error_msg, location_t location) argument [all...] |
/haiku-buildtools/gcc/gcc/ |
H A D | tree-ssa-live.c | 489 /* Mark the scope block SCOPE and its subblocks unused when they can be 493 mark_scope_block_unused (tree scope) argument 496 TREE_USED (scope) = false; 497 if (!(*debug_hooks->ignore_block) (scope)) 498 TREE_USED (scope) = true; 499 for (t = BLOCK_SUBBLOCKS (scope); t ; t = BLOCK_CHAIN (t)) 513 out of scope blocks to let them to be recycled by GGC and to save copying work 517 remove_unused_scope_block_p (tree scope, bool in_ctor_dtor_block) argument 520 bool unused = !TREE_USED (scope); 525 if (inlined_polymorphic_ctor_dtor_block_p (scope, tru 748 dump_scope_block(FILE *file, int indent, tree scope, int flags) argument 796 debug_scope_block(tree scope, int flags) argument [all...] |
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/ |
H A D | func1.go | 7 // Test that result parameters are in the same scope as regular parameters.
|
H A D | func3.go | 20 func f4() (t1 t1) // legal - scope of parameter named t1 starts in body of f4.
|
H A D | decl.go | 18 return // tests that result var is in scope for redeclaration
|
H A D | typeswitch2.go | 40 // The first t is in a different scope than the 2nd t; it cannot
|
/haiku-buildtools/legacy/gcc/gcc/cp/ |
H A D | semantics.c | 425 /* Pop the scope for the body of the loop. */ 664 compound-statement does not define a scope. Returns a new 692 a scope. */ 980 warning ("signature name in scope resolution ignored"); 989 being the scope, if any, of DESTRUCTOR. Returns an expression for 993 finish_pseudo_destructor_call_expr (object, scope, destructor) 995 tree scope; 998 if (scope && scope != destructor) 1000 scope, destructo 1568 tree scope = TREE_OPERAND (sr, 0); local 1654 tree scope = current_scope (); local [all...] |
H A D | decl2.c | 403 /* Nonzero means that member functions defined in class scope are 441 /* Nonzero if we want the new ANSI rules for pushing a new scope for `for' 443 0: Old rules, set by -fno-for-scope. 444 2: New ANSI rules, set by -ffor-scope. 523 {"for-scope", &flag_new_for_scope, 2}, 3239 /* Set up the scope of the outermost block in the function. */ 3552 if these calls appeared in the scope of the member's 3725 duration are initialized when their scope is first entered, 3859 /* Static data members are just like namespace-scope globals. */ 4565 The using list is defined by usings, and the lookup goes to scope 5250 tree scope, name, binding; local 5278 tree scope, name; local [all...] |
/haiku-buildtools/gcc/gcc/c/ |
H A D | c-decl.c | 144 /* A list of decls to be made automatically visible in each file scope. */ 178 a decl. All the decls in a scope - irrespective of namespace - are 191 The ->u.type field stores the type of the declaration in this scope; 195 persist for the duration of those scopes. In the external scope, 198 scope) stores whether an incomplete array type at file scope was 199 completed at an inner scope to an array size other than 1. 204 The depth field is copied from the scope structure that holds this 209 true for a decl that's been bound a second time in an inner scope; 210 in all such cases, the binding in the outer scope wil 357 struct c_scope *scope; variable in typeref:struct:c_scope 732 bind(tree name, tree decl, struct c_scope *scope, bool invisible, bool nested, location_t locus) argument 812 bind_label(tree name, tree label, struct c_scope *scope, struct c_label_vars *label_vars) argument 923 update_spot_bindings(struct c_scope *scope, struct c_spot_bindings *p) argument 955 struct c_scope *scope; local 1050 struct c_scope *scope; local 1088 update_label_decls(struct c_scope *scope) argument 1166 struct c_scope *scope = current_scope; local 1466 struct c_scope *scope; local 1499 struct c_scope *scope; local 1613 struct c_scope *scope; local 1639 bind (DECL_NAME (decl), decl, scope, false, nested, loc); local 2859 struct c_scope *scope = current_scope; local 3459 struct c_scope *scope; local 3664 struct c_scope *scope; local 3803 struct c_scope *scope; local 3938 lookup_name_in_scope(tree name, struct c_scope *scope) argument [all...] |
/haiku-buildtools/legacy/gcc/gcc/ch/ |
H A D | loop.c | 167 its own scope. 192 push a new scope, 212 pop scope 216 push a new scope, 235 pop scope 249 push a new scope, 268 pop scope 272 push a new scope, 292 pop scope 298 expand_start_loop -- start the loop''s control scope [all...] |
H A D | nloop.c | 179 its own scope. 204 push a new scope, 224 pop scope 228 push a new scope, 247 pop scope 261 push a new scope, 280 pop scope 284 push a new scope, 300 pop scope 308 expand_start_loop -- start the loop''s control scope [all...] |
H A D | decl.c | 35 Loosely, during pass 1, a 'scope' object is created for each Chill 36 reach. Each scope object contains a list of 'decl' objects, 38 is in the 'remembered_decls' field of each scope.) 47 During pass 2, as each scope is entered, we must make visible all 48 the declarations defined in the scope, before we generate any code. 52 identifiers that may be defined later in the scope - or even in 68 If a scope contains nested modulions, then the Binding phase must be 70 can start for that scope. As an example of why this is needed, consider: 86 (or hash) table per scope (or module). Instead we have a single 90 Note that a SEIZE generates a declaration in the current scope, 484 struct scope struct 4893 struct scope *scope; member in struct:c_function [all...] |
/haiku-buildtools/legacy/binutils/binutils/ |
H A D | srconv.c | 325 /* Count all the undefined and defined variables with global scope. */ 582 struct coff_scope *scope, int type, int nest) 590 if (scope->sec) 592 dps.san = scope->sec->number; 593 dps.address = scope->offset - find_base (sfile, scope->sec); 594 dps.block_size = scope->size; 618 struct coff_scope *scope ATTRIBUTE_UNUSED, int type) 1167 walk_tree_scope (struct coff_section *section, struct coff_sfile *sfile, struct coff_scope *scope, int nest, int type) argument 1172 if (scope 580 wr_dps_start(struct coff_sfile *sfile, struct coff_section *section ATTRIBUTE_UNUSED, struct coff_scope *scope, int type, int nest) argument [all...] |
H A D | coffgrok.h | 80 struct coff_scope *scope; member in struct:coff_sfile
|
/haiku-buildtools/binutils/binutils/ |
H A D | srconv.c | 291 /* Count all the undefined and defined variables with global scope. */ 549 struct coff_scope *scope, int type, int nest) 557 if (scope->sec) 559 dps.san = scope->sec->number; 560 dps.address = scope->offset - find_base (sfile, scope->sec); 561 dps.block_size = scope->size; 585 struct coff_scope *scope ATTRIBUTE_UNUSED, int type) 1135 walk_tree_scope (struct coff_section *section, struct coff_sfile *sfile, struct coff_scope *scope, int nest, int type) argument 1140 if (scope 547 wr_dps_start(struct coff_sfile *sfile, struct coff_section *section ATTRIBUTE_UNUSED, struct coff_scope *scope, int type, int nest) argument [all...] |
H A D | coffgrok.h | 82 struct coff_scope *scope; member in struct:coff_sfile
|
/haiku-buildtools/gcc/libgcc/config/cr16/ |
H A D | crti.S | 2 # file-scope objects in C++ and Java code, and to support exception handling.
|
H A D | crtn.S | 2 # file-scope objects in C++ and Java code, and to support exception handling.
|
/haiku-buildtools/legacy/binutils/bfd/ |
H A D | xsym.h | 91 BFD_SYM_SYMBOL_SCOPE_LOCAL = 0, /* Object is seen only inside current scope. */ 92 BFD_SYM_SYMBOL_SCOPE_GLOBAL = 1 /* Object has global scope. */ 289 unsigned char scope; member in struct:bfd_sym_contained_variables_table_entry::__anon2438 398 unsigned short scope; /* How visible the label is. */ member in struct:bfd_sym_contained_labels_table_entry::__anon2448
|
/haiku-buildtools/binutils/bfd/ |
H A D | xsym.h | 92 BFD_SYM_SYMBOL_SCOPE_LOCAL = 0, /* Object is seen only inside current scope. */ 93 BFD_SYM_SYMBOL_SCOPE_GLOBAL = 1 /* Object has global scope. */ 290 unsigned char scope; member in struct:bfd_sym_contained_variables_table_entry::__anon189 399 unsigned short scope; /* How visible the label is. */ member in struct:bfd_sym_contained_labels_table_entry::__anon199
|