Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for openScope (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProperty.java

            //  Without the safety net of the EvaluationContext, it can cause hard-to-debug exceptions.
            try (EvaluationContext.ScopeContext context = openScope()) {
                return getSupplier(context);
            }
        }
    
        public DefaultProperty<T> provider(Provider<? extends T> provider) {
            set(provider);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 6.1K 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/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)
  7. 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)
  8. 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)
Back to top