Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for openScope (0.13 sec)

  1. src/go/parser/resolver.go

    			if n.Init != nil {
    				r.openScope(n.Tag.Pos())
    				defer r.closeScope()
    			}
    			ast.Walk(r, n.Tag)
    		}
    		if n.Body != nil {
    			r.walkStmts(n.Body.List)
    		}
    
    	case *ast.TypeSwitchStmt:
    		if n.Init != nil {
    			r.openScope(n.Pos())
    			defer r.closeScope()
    			ast.Walk(r, n.Init)
    		}
    		r.openScope(n.Assign.Pos())
    		defer r.closeScope()
    		ast.Walk(r, n.Assign)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

            try (EvaluationContext.ScopeContext context = openScope()) {
                beforeReadNoProducer(context, consumer);
                return doCalculateValue(context, consumer);
            }
        }
    
        @Override
        protected Value<? extends T> calculateOwnValue(ValueConsumer consumer) {
            try (EvaluationContext.ScopeContext context = openScope()) {
                beforeRead(context, consumer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    			}
    		default:
    			check.errorf(s, InvalidSyntaxTree, "branch statement: %s", s.Tok)
    		}
    
    	case *ast.BlockStmt:
    		check.openScope(s, "block")
    		defer check.closeScope()
    
    		check.stmtList(inner, s.List)
    
    	case *ast.IfStmt:
    		check.openScope(s, "if")
    		defer check.closeScope()
    
    		check.simpleStmt(s.Init)
    		var x operand
    		check.expr(nil, &x, s.Cond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/stmt.go

    			fallthrough
    		default:
    			check.errorf(s, InvalidSyntaxTree, "branch statement: %s", s.Tok)
    		}
    
    	case *syntax.BlockStmt:
    		check.openScope(s, "block")
    		defer check.closeScope()
    
    		check.stmtList(inner, s.List)
    
    	case *syntax.IfStmt:
    		check.openScope(s, "if")
    		defer check.closeScope()
    
    		check.simpleStmt(s.Init)
    		var x operand
    		check.expr(nil, &x, s.Cond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *syntax.Field, tparams []*syntax.Field, ftyp *syntax.FuncType) {
    	check.openScope(ftyp, "function")
    	check.scope.isFunc = true
    	check.recordScope(ftyp, check.scope)
    	sig.scope = check.scope
    	defer check.closeScope()
    
    	if recvPar != nil {
    		// collect generic receiver type parameters, if any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/go/types/signature.go

    // Implementation
    
    // funcType type-checks a function or method type.
    func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
    	check.openScope(ftyp, "function")
    	check.scope.isFunc = true
    	check.recordScope(ftyp, check.scope)
    	sig.scope = check.scope
    	defer check.closeScope()
    
    	if recvPar != nil && len(recvPar.List) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/decl.go

    				if !versionErr && !buildcfg.Experiment.AliasTypeParams {
    					check.error(tdecl, UnsupportedFeature, "generic type alias requires GOEXPERIMENT=aliastypeparams")
    					versionErr = true
    				}
    				check.openScope(tdecl, "type parameters")
    				defer check.closeScope()
    				check.collectTypeParams(&alias.tparams, tdecl.TParamList)
    			}
    
    			rhs = check.definedType(tdecl.Type, obj)
    			assert(rhs != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  8. src/go/types/decl.go

    				if !versionErr && !buildcfg.Experiment.AliasTypeParams {
    					check.error(tdecl, UnsupportedFeature, "generic type alias requires GOEXPERIMENT=aliastypeparams")
    					versionErr = true
    				}
    				check.openScope(tdecl, "type parameters")
    				defer check.closeScope()
    				check.collectTypeParams(&alias.tparams, tdecl.TypeParams)
    			}
    
    			rhs = check.definedType(tdecl.Type, obj)
    			assert(rhs != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultMapProperty.java

            }
    
            @Override
            protected Value<? extends Set<K>> calculateOwnValue(ValueConsumer consumer) {
                try (EvaluationContext.ScopeContext context = DefaultMapProperty.this.openScope()) {
                    beforeRead(context, consumer);
                    return getSupplier(context).calculateKeys(consumer);
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectCollection.java

                    onCreate = onCreate.mergeFrom(getEventRegister().getAddActions());
    
                    try (EvaluationContext.ScopeContext scope = openScope()) {
                        // Create the domain object
                        object = createDomainObject();
                        // Configuring the domain object may cause circular evaluation, but after initializing this.object
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 16:54:51 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top