- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for SetPos (0.14 sec)
-
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) -
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) -
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) -
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) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FileBackedBlockStore.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/ir/copy.go
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) } // DeepCopyList returns a list of deep copies (using DeepCopy) of the nodes in list. func DeepCopyList(pos src.XPos, list []Node) []Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:57:57 UTC 2023 - 1K bytes - Viewed (0) -
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) -
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) -
src/cmd/compile/internal/ir/mini.go
// (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 } func (n *miniNode) SetEsc(x uint16) { n.esc = x } const ( miniTypecheckShift = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 22:09:44 UTC 2022 - 2.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0)