Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 243 for decls (0.04 sec)

  1. tensorflow/compiler/mlir/lite/quantization/ir/.clang-tidy

            bugprone-unused-raii,
            bugprone-unused-return-value,
            misc-redundant-expression,
            misc-static-assert,
            misc-unused-parameters,
            misc-unused-using-decls,
            modernize-use-bool-literals,
            modernize-loop-convert,
            modernize-make-unique,
            modernize-raw-string-literal,
            modernize-use-equals-default,
            modernize-use-default-member-init,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/url.go

    import (
    	"fmt"
    	"net/url"
    	"reflect"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/checker/decls"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    // URL provides a CEL representation of a URL.
    type URL struct {
    	*url.URL
    }
    
    var (
    	URLObject = decls.NewObjectType("kubernetes.URL")
    	typeValue = types.NewTypeValue("kubernetes.URL")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/closure.go

    			addr := ir.NewNameAt(clofn.Pos(), typecheck.Lookup("&"+v.Sym().Name), types.NewPtr(v.Type()))
    			addr.Curfn = clofn
    			v.Heapaddr = addr
    			v = addr
    		}
    
    		v.Class = ir.PPARAM
    		decls = append(decls, v)
    
    		fld := types.NewField(src.NoXPos, v.Sym(), v.Type())
    		fld.Nname = v
    		params = append(params, fld)
    	}
    
    	// f is ONAME of the actual function.
    	f := clofn.Nname
    	typ := f.Type()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    type declInfo struct {
    	decl     *ast.FuncDecl
    	cfg      *cfg.CFG // iff decl.Body != nil
    	started  bool     // to break cycles
    	noReturn bool
    }
    
    type litInfo struct {
    	cfg      *cfg.CFG
    	noReturn bool
    }
    
    // FuncDecl returns the control-flow graph for a named function.
    // It returns nil if decl.Body==nil.
    func (c *CFGs) FuncDecl(decl *ast.FuncDecl) *cfg.CFG {
    	if decl.Body == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. src/cmd/gofmt/simplify.go

    	removeEmptyDeclGroups(f)
    
    	var s simplifier
    	ast.Walk(s, f)
    }
    
    func removeEmptyDeclGroups(f *ast.File) {
    	i := 0
    	for _, d := range f.Decls {
    		if g, ok := d.(*ast.GenDecl); !ok || !isEmpty(f, g) {
    			f.Decls[i] = d
    			i++
    		}
    	}
    	f.Decls = f.Decls[:i]
    }
    
    func isEmpty(f *ast.File, g *ast.GenDecl) bool {
    	if g.Doc != nil || g.Specs != nil {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:06:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  6. src/go/doc/exports.go

    	return false
    }
    
    // fileExports removes unexported declarations from src in place.
    func (r *reader) fileExports(src *ast.File) {
    	j := 0
    	for _, d := range src.Decls {
    		if r.filterDecl(d) {
    			src.Decls[j] = d
    			j++
    		}
    	}
    	src.Decls = src.Decls[0:j]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue15838.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test cases for issue #15838, and related failures.
    // Make sure the importer correctly sets up nodes for
    // label decls, goto, continue, break, and fallthrough
    // statements.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 00:32:03 UTC 2016
    - 370 bytes
    - Viewed (0)
  8. src/go/ast/issues_test.go

    		}
    
    		// find corresponding token.File
    		var tf *token.File
    		fset.Iterate(func(f *token.File) bool {
    			tf = f
    			return true
    		})
    		tfEnd := tf.Base() + tf.Size()
    
    		fd := f.Decls[len(f.Decls)-1].(*ast.FuncDecl)
    		fdEnd := int(fd.End())
    
    		if fdEnd != tfEnd {
    			t.Errorf("%q: got fdEnd = %d; want %d (base = %d, size = %d)", src, fdEnd, tfEnd, tf.Base(), tf.Size())
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 13:57:33 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/go/printer/performance_test.go

    	}
    
    	fileNode = file
    	fileSize = int64(len(src))
    
    	for _, decl := range file.Decls {
    		// The first global variable, which is pretty short:
    		//
    		//	var unresolved = new(ast.Object)
    		if decl, ok := decl.(*ast.GenDecl); ok && decl.Tok == token.VAR {
    			declNode = decl
    			declSize = int64(fset.Position(decl.End()).Offset - fset.Position(decl.Pos()).Offset)
    			break
    		}
    
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/inference/BUILD

        ],
    )
    
    gentbl_cc_library(
        name = "inference_passes_inc_gen",
        compatible_with = get_compatible_with_portable(),
        tbl_outs = [
            (
                [
                    "-gen-pass-decls",
                    "-name=TF2XLA",
                ],
                "inference_passes.h.inc",
            ),
        ],
        tblgen = "@llvm-project//mlir:mlir-tblgen",
        td_file = "inference_passes.td",
        deps = [
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 21:59:39 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top