Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for decls (0.04 sec)

  1. src/go/parser/resolver_test.go

    func declsFromComments(handle *token.File, src []byte) map[token.Pos]token.Pos {
    	decls, uses := positionMarkers(handle, src)
    
    	objmap := make(map[token.Pos]token.Pos)
    	// Join decls and uses on name, to build the map of use->decl.
    	for name, posns := range uses {
    		declpos, ok := decls[name]
    		if !ok {
    			panic(fmt.Sprintf("missing declaration for %s", name))
    		}
    		for _, pos := range posns {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. test/clearfat.go

    	"strconv"
    	"strings"
    )
    
    const ntest = 1100
    
    func main() {
    	var decls, calls bytes.Buffer
    
    	for i := 1; i <= ntest; i++ {
    		s := strconv.Itoa(i)
    		decls.WriteString(strings.Replace(decl, "$", s, -1))
    		calls.WriteString(strings.Replace("poison$()\n\tclearfat$()\n\t", "$", s, -1))
    	}
    
    	program = strings.Replace(program, "$DECLS", decls.String(), 1)
    	program = strings.Replace(program, "$CALLS", calls.String(), 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 31 15:08:27 UTC 2014
    - 1.1K bytes
    - Viewed (0)
  3. test/fixedbugs/bug449.go

    	"fmt"
    	"strconv"
    	"strings"
    )
    
    const ntest = 1024
    
    func main() {
    	var decls, calls bytes.Buffer
    
    	for i := 1; i <= ntest; i++ {
    		s := strconv.Itoa(i)
    		decls.WriteString(strings.Replace(decl, "$", s, -1))
    		calls.WriteString(strings.Replace("call(test$)\n\t", "$", s, -1))
    	}
    
    	program = strings.Replace(program, "$DECLS", decls.String(), 1)
    	program = strings.Replace(program, "$CALLS", calls.String(), 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 01 03:02:46 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  4. src/go/ast/commentmap_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	cmap := NewCommentMap(fset, f, f.Comments)
    
    	// delete variable declaration
    	for i, decl := range f.Decls {
    		if gen, ok := decl.(*GenDecl); ok && gen.Tok == token.VAR {
    			copy(f.Decls[i:], f.Decls[i+1:])
    			f.Decls = f.Decls[:len(f.Decls)-1]
    			break
    		}
    	}
    
    	// check if comments are filtered correctly
    	cc := cmap.Filter(f)
    	for n, list := range cc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/BUILD

        name = "tfrt_fallback_sync_opdefs_inc_gen",
        tbl_outs = [
            (
                ["-gen-op-decls"],
                "tfrt_fallback_sync.h.inc",
            ),
            (
                ["-gen-op-defs"],
                "tfrt_fallback_sync.cpp.inc",
            ),
            (
                [
                    "-gen-dialect-decls",
                    "-dialect=tfrt_fallback_sync",
                ],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 27 20:43:07 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. src/cmd/internal/goobj/mkbuiltin.go

    	if err != nil {
    		log.Fatal(err)
    	}
    
    	decls := make(map[string]bool)
    
    	fmt.Fprintf(w, "var builtins = [...]struct{ name string; abi int }{\n")
    	for _, decl := range f.Decls {
    		switch decl := decl.(type) {
    		case *ast.FuncDecl:
    			if decl.Recv != nil {
    				log.Fatal("methods unsupported")
    			}
    			if decl.Body != nil {
    				log.Fatal("unexpected function body")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. src/go/ast/example_test.go

    	cmap := ast.NewCommentMap(fset, f, f.Comments)
    
    	// Remove the first variable declaration from the list of declarations.
    	for i, decl := range f.Decls {
    		if gen, ok := decl.(*ast.GenDecl); ok && gen.Tok == token.VAR {
    			copy(f.Decls[i:], f.Decls[i+1:])
    			f.Decls = f.Decls[:len(f.Decls)-1]
    			break
    		}
    	}
    
    	// Use the comment map to filter comments that don't belong anymore
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/mlrt/BUILD

            "@llvm-project//mlir:SideEffectInterfacesTdFiles",
        ],
    )
    
    gentbl_cc_library(
        name = "mlrt_ops_inc_gen",
        tbl_outs = [
            (
                ["-gen-op-decls"],
                "mlrt_ops.h.inc",
            ),
            (
                ["-gen-op-defs"],
                "mlrt_ops.cpp.inc",
            ),
        ],
        tblgen = "@llvm-project//mlir:mlir-tblgen",
        td_file = "mlrt_ops.td",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 17:04:28 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/ir/BUILD

        compatible_with = get_compatible_with_portable(),
        tbl_outs = [
            (
                ["-gen-op-decls"],
                "QuantOps.h.inc",
            ),
            (
                ["-gen-op-defs"],
                "QuantOps.cc.inc",
            ),
            (
                [
                    "-gen-dialect-decls",
                    "-dialect=quantfork",
                ],
                "QuantOpsDialect.h.inc",
            ),
            (
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 29 02:59:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/ir/BUILD

        compatible_with = get_compatible_with_portable(),
        tbl_outs = [
            (
                ["-gen-op-decls"],
                "QuantOps.h.inc",
            ),
            (
                ["-gen-op-defs"],
                "QuantOps.cc.inc",
            ),
            (
                [
                    "-gen-dialect-decls",
                    "-dialect=quantization",
                ],
                "QuantOpsDialect.h.inc",
            ),
            (
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 29 02:59:58 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top