Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 263 for Rparen (0.24 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    //	)
    type LineBlock struct {
    	Comments
    	Start  Position
    	LParen LParen
    	Token  []string
    	Line   []*Line
    	RParen RParen
    }
    
    func (x *LineBlock) Span() (start, end Position) {
    	return x.Start, x.RParen.Pos.add(")")
    }
    
    // An LParen represents the beginning of a parenthesized line block.
    // It is a place to store suffix comments.
    type LParen struct {
    	Comments
    	Pos Position
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/go/ast/import.go

    		d.Specs = specs
    
    		// Deduping can leave a blank line before the rparen; clean that up.
    		if len(d.Specs) > 0 {
    			lastSpec := d.Specs[len(d.Specs)-1]
    			lastLine := lineAt(fset, lastSpec.Pos())
    			rParenLine := lineAt(fset, d.Rparen)
    			for rParenLine > lastLine+1 {
    				rParenLine--
    				fset.File(d.Rparen).MergeLine(rParenLine)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/go/types/generate_test.go

    					if isIdent(n.Args[0], "pos") {
    						pos := n.Args[0].Pos()
    						fun := &ast.SelectorExpr{X: newIdent(pos, "posn"), Sel: newIdent(pos, "Pos")}
    						arg := &ast.CallExpr{Fun: fun, Lparen: pos, Args: nil, Ellipsis: token.NoPos, Rparen: pos}
    						n.Args[0] = arg
    						return false
    					}
    				case "addf":
    					// rewrite err.addf(pos, ...) to err.addf(posn, ...)
    					if isIdent(n.Args[0], "pos") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. src/go/types/util.go

    func dddErrPos(call *ast.CallExpr) positioner { return atPos(call.Ellipsis) }
    
    // argErrPos returns positioner for reporting an invalid argument count.
    func argErrPos(call *ast.CallExpr) positioner { return inNode(call, call.Rparen) }
    
    // startPos returns the start position of node n.
    func startPos(n ast.Node) token.Pos { return n.Pos() }
    
    // endPos returns the position of the first character immediately after node n.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/go/ast/example_test.go

    	//     29  .  .  .  .  .  .  .  Fun: *ast.Ident {
    	//     30  .  .  .  .  .  .  .  .  NamePos: 4:2
    	//     31  .  .  .  .  .  .  .  .  Name: "println"
    	//     32  .  .  .  .  .  .  .  }
    	//     33  .  .  .  .  .  .  .  Lparen: 4:9
    	//     34  .  .  .  .  .  .  .  Args: []ast.Expr (len = 1) {
    	//     35  .  .  .  .  .  .  .  .  0: *ast.BasicLit {
    	//     36  .  .  .  .  .  .  .  .  .  ValuePos: 4:10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/go/doc/example.go

    			if d.Doc != nil {
    				comments = append(comments, d.Doc)
    			}
    		}
    	}
    
    	// Synthesize import declaration.
    	importDecl := &ast.GenDecl{
    		Tok:    token.IMPORT,
    		Lparen: 1, // Need non-zero Lparen and Rparen so that printer
    		Rparen: 1, // treats this as a factored import.
    	}
    	importDecl.Specs = append(namedImports, blankImports...)
    
    	// Synthesize main function.
    	funcDecl := &ast.FuncDecl{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  7. src/go/types/call.go

    		check.nonGeneric(nil, x)
    		if x.mode == invalid {
    			return conversion
    		}
    		T := x.typ
    		x.mode = invalid
    		switch n := len(call.Args); n {
    		case 0:
    			check.errorf(inNode(call, call.Rparen), WrongArgCount, "missing argument in conversion to %s", T)
    		case 1:
    			check.expr(nil, x, call.Args[0])
    			if x.mode != invalid {
    				if hasDots(call) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. src/go/printer/printer_test.go

    	// now remove parentheses from the declaration
    	for i := 0; i != len(f.Decls); i++ {
    		f.Decls[i].(*ast.GenDecl).Lparen = token.NoPos
    	}
    	buf.Reset()
    	err = Fprint(&buf, fset, f)
    	if err != nil {
    		t.Fatal(err)
    	}
    	noparen := buf.String()
    
    	if noparen != original {
    		t.Errorf("got %q, want %q", noparen, original)
    	}
    }
    
    // Verify that we don't print a newline between "return" and its results, as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. maven-api-impl/src/test/remote-repo/org/apache/maven/its/parent/0.1/parent-0.1.pom

        <modelVersion>4.0.0</modelVersion>
    
        <groupId>org.apache.maven.its</groupId>
        <artifactId>parent</artifactId>
        <version>0.1</version>
        <packaging>pom</packaging>
    
        <name>Maven Integration Test :: Dummy Parent</name>
    
        <build>
            <pluginManagement>
                <plugins>
                    <plugin>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 774 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/parser.go

    		p.next()
    		var typ Expr
    		if p.tok == _Lparen {
    			// *(T)
    			p.syntaxError("cannot parenthesize embedded type")
    			p.next()
    			typ = p.qualifiedName(nil)
    			p.got(_Rparen) // no need to complain if missing
    		} else {
    			// *T
    			typ = p.qualifiedName(nil)
    		}
    		tag := p.oliteral()
    		p.addField(styp, pos, nil, newIndirect(pos, typ), tag)
    
    	case _Lparen:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top