Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 708 for positioned (1.09 sec)

  1. src/go/ast/example_test.go

    func ExampleInspect() {
    	// src is the input for which we want to inspect the AST.
    	src := `
    package p
    const c = 1.0
    var X = f(3.14)*2 + c
    `
    
    	// Create the AST by parsing src.
    	fset := token.NewFileSet() // positions are relative to fset
    	f, err := parser.ParseFile(fset, "src.go", src, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	// Inspect the AST and print all identifiers and literals.
    	ast.Inspect(f, func(n ast.Node) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/data_flow_grad.cc

      // DynamicStitch shuffles its data to the output (using items in
      // indices) so the gradient propagated to a given data input simply
      // selects the gradient for its output position.
      for (int32_t i = 0; i < num_values; i++) {
        // index has the destination positions for the i'th data
        // element. We cast it into an int32 if necessary, so we can use
        // it from a Gather op.
        // i = 0: index = 2
        // i = 1: index = [1, 0]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jul 24 13:40:35 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  3. src/cmd/internal/src/xpos.go

    // This file implements the compressed encoding of source
    // positions using a lookup table.
    
    package src
    
    // XPos is a more compact representation of Pos.
    type XPos struct {
    	index int32
    	lico
    }
    
    // NoXPos is a valid unknown position.
    var NoXPos XPos
    
    // IsKnown reports whether the position p is known.
    // XPos.IsKnown() matches Pos.IsKnown() for corresponding
    // positions.
    func (p XPos) IsKnown() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/main/webapp/js/admin/adminlte.min.js.map

     }\n\n    // Static\n\n    _getContainerId() {\n      if (this._config.position == Position.TOP_RIGHT) {\n        return Selector.CONTAINER_TOP_RIGHT;\n      } else if (this._config.position == Position.TOP_LEFT) {\n        return Selector.CONTAINER_TOP_LEFT;\n      } else if (this._config.position == Position.BOTTOM_RIGHT) {\n        return Selector.CONTAINER_BOTTOM_RIGHT;\n      } else if (this._config.position == Position.BOTTOM_LEFT) {\n        return Selector.CONTAINER_BOTTOM_LEFT;\n      }\n...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Wed Feb 12 07:55:41 UTC 2020
    - 77K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/liveness/intervals.go

    	c.s[len(c.s)-1].st = pos
    	c.setLast(pos)
    	return nil
    }
    
    // Kill method should be invoked on instruction at position p if instr
    // should be treated as as having a kill (lifetime end) for the
    // resource. See the example in the comment at the beginning of this
    // file for an example. Note that if we see a kill at position K for a
    // resource currently live since J, this will result in a lifetime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. src/text/scanner/scanner_test.go

    			t.Errorf("tok = %q, want %q", s.TokenText(), string(ch))
    		}
    	}
    	checkPos(t, s.Position, want)
    }
    
    func TestPos(t *testing.T) {
    	// corner case: empty source
    	s := new(Scanner).Init(strings.NewReader(""))
    	checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})
    	s.Peek() // peek doesn't affect the position
    	checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})
    
    	// corner case: source with only a newline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  7. test/typeparam/issue58513.go

    // function literals to plumb sub-dictionaries appropriately.
    // However, when these expressions are inlined, we were constructing
    // the function literal bodies with the inline-adjusted positions
    // instead of the original (inline-free) positions, which could lead
    // to infinite loops when unwinding the stack.
    
    package main
    
    import "runtime"
    
    func assert[_ any]() {
    	panic(0)
    }
    
    func Assert[To any]() func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 23:07:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. src/go/ast/ast.go

    //
    // All nodes contain position information marking the beginning of
    // the corresponding source text segment; it is accessible via the
    // Pos accessor method. Nodes may contain additional position info
    // for language constructs where comments may be found between parts
    // of the construct (typically any larger, parenthesized subpart).
    // That position information is needed to properly position comments
    // when printing the construct.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  9. src/go/parser/resolver_test.go

    )
    
    // TestResolution checks that identifiers are resolved to the declarations
    // annotated in the source, by comparing the positions of the resulting
    // Ident.Obj.Decl to positions marked in the source via special comments.
    //
    // In the test source, any comment prefixed with '=' or '@' (or both) marks the
    // previous token position as the declaration ('=') or a use ('@') of an
    // identifier. The text following '=' and '@' in the comment string is the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  10. src/go/doc/example.go

    	imps := make([]*ast.ImportSpec, len(origImps))
    	copy(imps, origImps)
    	// Assume the imports are sorted by position.
    	slices.SortFunc(imps, func(a, b *ast.ImportSpec) int {
    		return cmp.Compare(a.Pos(), b.Pos())
    	})
    	// Assume gofmt has been applied, so there is a blank line between adjacent imps
    	// if and only if they are more than 2 positions apart (newline, tab).
    	var groupStarts []*ast.ImportSpec
    	prevEnd := token.Pos(-2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top