Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,098 for SYNTAX (0.11 sec)

  1. src/cmd/compile/internal/types2/util_test.go

    // so that it can be used in (package-external) tests.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    )
    
    func CmpPos(p, q syntax.Pos) int { return cmpPos(p, q) }
    
    func ScopeComment(s *Scope) string         { return s.comment }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 30 01:15:55 UTC 2023
    - 520 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/noder/posmap.go

    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/syntax"
    	"cmd/internal/src"
    )
    
    // A posMap handles mapping from syntax.Pos to src.XPos.
    type posMap struct {
    	bases map[*syntax.PosBase]*src.PosBase
    	cache struct {
    		last *syntax.PosBase
    		base *src.PosBase
    	}
    }
    
    type poser interface{ Pos() syntax.Pos }
    type ender interface{ End() syntax.Pos }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 27 03:43:35 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. maven-compat/src/main/resources/META-INF/maven/plugin-expressions/rootless.paramdoc.xml

      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../../../../maven-plugin-parameter-documenter/target/generated-site/xsd/paramdoc-1.0.0.xsd ">
      <expressions>
        <expression>
          <syntax>localRepository</syntax>
          <configuration>
            <![CDATA[
          Inside ~/.m2/settings.xml:
    
          <localRepository>/path/to/local/repository</localRepository>
          ]]></configuration>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Nov 23 12:04:30 UTC 2014
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/union.go

    // flattenUnion walks a union type expression of the form A | B | C | ...,
    // extracting both the binary exprs (blist) and leaf types (tlist).
    func flattenUnion(list []syntax.Expr, x syntax.Expr) (blist, tlist []syntax.Expr) {
    	if o, _ := x.(*syntax.Operation); o != nil && o.Op == syntax.Or {
    		blist, tlist = flattenUnion(list, o.X)
    		blist = append(blist, o)
    		x = o.Y
    	}
    	return blist, append(tlist, x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/decl.go

    	}
    }
    
    func (check *Checker) bound(x syntax.Expr) Type {
    	// A type set literal of the form ~T and A|B may only appear as constraint;
    	// embed it in an implicit interface so that only interface type-checking
    	// needs to take care of such type expressions.
    	if op, _ := x.(*syntax.Operation); op != nil && (op.Op == syntax.Tilde || op.Op == syntax.Or) {
    		t := check.typ(&syntax.InterfaceType{MethodList: []*syntax.Field{{Type: x}}})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  6. src/go/build/read_test.go

    		"syntax error",
    	},
    	{
    		`package p; import _ "`,
    		"syntax error",
    	},
    	{
    		`package p; import _ "x`,
    		"syntax error",
    	},
    	{
    		`package p; import .`,
    		"syntax error",
    	},
    	{
    		`package p; import . "`,
    		"syntax error",
    	},
    	{
    		`package p; import . "x`,
    		"syntax error",
    	},
    	{
    		`package p; import (`,
    		"syntax error",
    	},
    	{
    		`package p; import ("`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

        def "can reference input using dollar method expression - #syntax"() {
            when:
            buildScript """
              @Managed
              interface Thing {
                String getValue(); void setValue(String str)
              }
    
              model {
                thing(Thing) {
                    value = "foo"
                }
                tasks {
                    def v = $syntax
                    create("echo") {
                        doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/call.go

    //     unchanged.
    //
    // If an error (other than a version error) occurs in any case, it is reported
    // and x.mode is set to invalid.
    func (check *Checker) funcInst(T *target, pos syntax.Pos, x *operand, inst *syntax.IndexExpr, infer bool) ([]Type, []syntax.Expr) {
    	assert(T != nil || inst != nil)
    
    	var instErrPos poser
    	if inst != nil {
    		instErrPos = inst.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/check_test.go

    	info := Info{
    		Types:        make(map[syntax.Expr]TypeAndValue),
    		Instances:    make(map[*syntax.Name]Instance),
    		Defs:         make(map[*syntax.Name]Object),
    		Uses:         make(map[*syntax.Name]Object),
    		Implicits:    make(map[syntax.Node]Object),
    		Selections:   make(map[*syntax.SelectorExpr]*Selection),
    		Scopes:       make(map[syntax.Node]*Scope),
    		FileVersions: make(map[*syntax.PosBase]string),
    	}
    
    	// typecheck
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typexpr.go

    			check.errorf(&x, NotAType, "%s used as type", &x)
    		default:
    			check.errorf(&x, NotAType, "%s is not a type", &x)
    		}
    
    	case *syntax.IndexExpr:
    		check.verifyVersionf(e, go1_18, "type instantiation")
    		return check.instantiatedType(e.X, syntax.UnpackListExpr(e.Index), def)
    
    	case *syntax.ParenExpr:
    		// Generic types must be instantiated before they can be used in any form.
    		// Consequently, generic types cannot be parenthesized.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top