Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for openScope (0.13 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProvider.java

                }
            }
            return null;
        }
    
        @Override
        protected Value<? extends T> calculateOwnValue(ValueConsumer consumer) {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return Value.ofNullable(value.call());
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/go/printer/testdata/parser.go

    	// there are other parser entry points (ParseExpr, etc.)
    	p.openScope()
    	p.pkgScope = p.topScope
    
    	// for the same reason, set up a label scope
    	p.openLabelScope()
    }
    
    // ----------------------------------------------------------------------------
    // Scoping support
    
    func (p *parser) openScope() {
    	p.topScope = ast.NewScope(p.topScope)
    }
    
    func (p *parser) closeScope() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractMinimalProvider.java

        }
    
        /**
         * Marks this provider as being evaluated until the returned scope is closed.
         *
         * @return the scope
         */
        protected EvaluationContext.ScopeContext openScope() {
            return EvaluationContext.current().open(this);
        }
    
        /**
         * An implementation for the toString method that is never called if the current provider is being evaluated.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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