Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for setPos (0.12 sec)

  1. src/go/printer/nodes.go

    		if len(list) == 0 {
    			// no blank between keyword and {} in this case
    			p.setPos(lbrace)
    			p.print(token.LBRACE)
    			p.setPos(rbrace)
    			p.print(token.RBRACE)
    			return
    		} else if p.isOneLineFieldList(list) {
    			// small enough - print on one line
    			// (don't use identList and ignore source line breaks)
    			p.setPos(lbrace)
    			p.print(token.LBRACE, blank)
    			f := list[0]
    			if isStruct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/select.go

    		} else {
    			r = ir.NewBlockStmt(base.Pos, list)
    		}
    
    		init = append(init, r)
    	}
    
    	if dflt != nil {
    		ir.SetPos(dflt)
    		dispatch(ir.NewBinaryExpr(base.Pos, ir.OLT, chosen, ir.NewInt(base.Pos, 0)), dflt)
    	}
    	for i, cas := range casorder {
    		ir.SetPos(cas)
    		if i == len(casorder)-1 {
    			dispatch(nil, cas)
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/rangefunc/rewrite.go

    	return n
    }
    
    // setPos walks the top structure of x that has no position assigned
    // and assigns it all to have position pos.
    // When setPos encounters a syntax node with a position assigned,
    // setPos does not look inside that node.
    // setPos only needs to handle syntax we create in this package;
    // all other syntax should have positions assigned already.
    func setPos(x syntax.Node, pos syntax.Pos) {
    	if x == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/Block.java

        }
    
        public abstract BlockPointer getPos();
    
        public abstract int getSize();
    
        public abstract RuntimeException blockCorruptedException();
    
        @Override
        public String toString() {
            return payload.getClass().getSimpleName() + " " + getPos();
        }
    
        public BlockPointer getNextPos() {
            return BlockPointer.pos(getPos().getPos() + getSize());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FileBackedBlockStore.java

                this(payload);
                setPos(pos);
            }
    
            public BlockImpl(BlockPayload payload) {
                super(payload);
                pos = null;
                payloadSize = -1;
            }
    
            @Override
            public boolean hasPos() {
                return pos != null;
            }
    
            @Override
            public BlockPointer getPos() {
                if (pos == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/copy.go

    // If pos.IsKnown(), it sets the source position of newly allocated Nodes to pos.
    func DeepCopy(pos src.XPos, n Node) Node {
    	var edit func(Node) Node
    	edit = func(x Node) Node {
    		switch x.Op() {
    		case ONAME, ONONAME, OLITERAL, ONIL, OTYPE:
    			return x
    		}
    		x = Copy(x)
    		if pos.IsKnown() {
    			x.SetPos(pos)
    		}
    		EditChildren(x, edit)
    		return x
    	}
    	return edit(n)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/complit.go

    	for _, r := range entries {
    		r := r.(*ir.KeyExpr)
    		index, elem := r.Key, r.Value
    
    		ir.SetPos(index)
    		appendWalkStmt(init, ir.NewAssignStmt(base.Pos, tmpkey, index))
    
    		ir.SetPos(elem)
    		appendWalkStmt(init, ir.NewAssignStmt(base.Pos, tmpelem, elem))
    
    		ir.SetPos(tmpelem)
    
    		// typechecker rewrites OINDEX to OINDEXMAP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/nodes.go

    	//    ('[' for IndexExpr, 'if' for IfStmt, etc.)
    	Pos() Pos
    	SetPos(Pos)
    	aNode()
    }
    
    type node struct {
    	// commented out for now since not yet used
    	// doc  *Comment // nil means no comment(s) attached
    	pos Pos
    }
    
    func (n *node) Pos() Pos       { return n.pos }
    func (n *node) SetPos(pos Pos) { n.pos = pos }
    func (*node) aNode()           {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ir/mini.go

    	}
    	return n.pos
    }
    
    // op can be read, but not written.
    // An embedding implementation can provide a SetOp if desired.
    // (The panicking SetOp is with the other panics below.)
    func (n *miniNode) Op() Op            { return n.op }
    func (n *miniNode) Pos() src.XPos     { return n.pos }
    func (n *miniNode) SetPos(x src.XPos) { n.pos = x }
    func (n *miniNode) Esc() uint16       { return n.esc }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 22:09:44 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/typecheck.go

    				}
    				if len(nl)-i > 1 {
    					goto toomany
    				}
    				n = nl[i]
    				ir.SetPos(n)
    				if n.Type() != nil {
    					nl[i] = assignconvfn(n, t, desc)
    				}
    				return
    			}
    
    			// TODO(mdempsky): Make into ... call with implicit slice.
    			for ; i < len(nl); i++ {
    				n = nl[i]
    				ir.SetPos(n)
    				if n.Type() != nil {
    					nl[i] = assignconvfn(n, t.Elem(), desc)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top