Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 543 for SYNTAX (0.1 sec)

  1. src/regexp/onepass.go

    func cleanupOnePass(prog *onePassProg, original *syntax.Prog) {
    	for ix, instOriginal := range original.Inst {
    		switch instOriginal.Op {
    		case syntax.InstAlt, syntax.InstAltMatch, syntax.InstRune:
    		case syntax.InstCapture, syntax.InstEmptyWidth, syntax.InstNop, syntax.InstMatch, syntax.InstFail:
    			prog.Inst[ix].Next = nil
    		case syntax.InstRune1, syntax.InstRuneAny, syntax.InstRuneAnyNotNL:
    			prog.Inst[ix].Next = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/regexp/exec.go

    	r2 := rune(f)
    	if op&syntax.EmptyEndLine != 0 {
    		if r2 != '\n' && r2 >= 0 {
    			return false
    		}
    		op &^= syntax.EmptyEndLine
    	}
    	if op&syntax.EmptyEndText != 0 {
    		if r2 >= 0 {
    			return false
    		}
    		op &^= syntax.EmptyEndText
    	}
    	if op == 0 {
    		return true
    	}
    	if syntax.IsWordChar(r1) != syntax.IsWordChar(r2) {
    		op &^= syntax.EmptyWordBoundary
    	} else {
    		op &^= syntax.EmptyNoWordBoundary
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api.go

    	// function's syntax ([*ast.FuncDecl] or [*ast.FuncLit]).
    	// The Scopes mapping does not contain an entry for the
    	// function body ([*ast.BlockStmt]); the function's scope is
    	// associated with the [*ast.FuncType].
    	//
    	// The following node types may appear in Scopes:
    	//
    	//     *syntax.File
    	//     *syntax.FuncType
    	//     *syntax.TypeDecl
    	//     *syntax.BlockStmt
    	//     *syntax.IfStmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensionsTest.kt

            container {
                // invoke syntax
                val domainObject by getting
                inOrder(container) {
                    verify(container).getByName("domainObject")
                    verifyNoMoreInteractions()
                }
                assertThat(domainObject, sameInstance(element))
            }
    
            container.apply {
                // regular syntax
                val domainObject by getting
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    }
    
    func (f *File) AddModuleStmt(path string) error {
    	if f.Syntax == nil {
    		f.Syntax = new(FileSyntax)
    	}
    	if f.Module == nil {
    		f.Module = &Module{
    			Mod:    module.Version{Path: path},
    			Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
    		}
    	} else {
    		f.Module.Mod.Path = path
    		f.Syntax.updateLine(f.Module.Syntax, "module", AutoQuote(path))
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/stmt.go

    				valid = true
    			case *syntax.AssignStmt:
    				if _, ok := s.Rhs.(*syntax.ListExpr); !ok {
    					rhs = s.Rhs
    				}
    			case *syntax.ExprStmt:
    				rhs = s.X
    			}
    
    			// if present, rhs must be a receive operation
    			if rhs != nil {
    				if x, _ := syntax.Unparen(rhs).(*syntax.Operation); x != nil && x.Y == nil && x.Op == syntax.Recv {
    					valid = true
    				}
    			}
    
    			if !valid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/noder/noder.go

    	syntax.AndAnd: ir.OANDAND,
    
    	syntax.Eql: ir.OEQ,
    	syntax.Neq: ir.ONE,
    	syntax.Lss: ir.OLT,
    	syntax.Leq: ir.OLE,
    	syntax.Gtr: ir.OGT,
    	syntax.Geq: ir.OGE,
    
    	syntax.Add: ir.OADD,
    	syntax.Sub: ir.OSUB,
    	syntax.Or:  ir.OOR,
    	syntax.Xor: ir.OXOR,
    
    	syntax.Mul:    ir.OMUL,
    	syntax.Div:    ir.ODIV,
    	syntax.Rem:    ir.OMOD,
    	syntax.And:    ir.OAND,
    	syntax.AndNot: ir.OANDNOT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/rangefunc/rewrite.go

    func (r *rewriter) assertReady(start syntax.Pos, loop *forLoop) syntax.Stmt {
    	nif := &syntax.IfStmt{
    		Cond: r.cond(syntax.Neq, r.useObj(loop.stateVar), r.stateConst(abi.RF_READY)),
    		Then: &syntax.BlockStmt{
    			List: []syntax.Stmt{r.callPanic(start, r.useObj(loop.stateVar))},
    		},
    	}
    	setPos(nif, start)
    	return nif
    }
    
    func (r *rewriter) callPanic(start syntax.Pos, arg syntax.Expr) syntax.Stmt {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreterTest.kt

            )
        }
    
        @Test
        fun `unsupported syntax - plugin spec accessor`() {
            assertDynamicInterpretationOf(
                """java""",
                "Expecting token of type RBRACE, but got IDENTIFIER ('java') instead"
            )
        }
    
        @Test
        fun `unsupported syntax - version catalog alias`() {
            assertDynamicInterpretationOf(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:15:27 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/check.go

    func (check *Checker) recordInstance(expr syntax.Expr, targs []Type, typ Type) {
    	ident := instantiatedIdent(expr)
    	assert(ident != nil)
    	assert(typ != nil)
    	if m := check.Instances; m != nil {
    		m[ident] = Instance{newTypeList(targs), typ}
    	}
    }
    
    func instantiatedIdent(expr syntax.Expr) *syntax.Name {
    	var selOrIdent syntax.Expr
    	switch e := expr.(type) {
    	case *syntax.IndexExpr:
    		selOrIdent = e.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top