Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/compiler/mlir/lite/BUILD

        tbl_outs = [
            (
                ["-gen-op-interface-decls"],
                "ir/tfl_ops_interface.h.inc",
            ),
            (
                ["-gen-op-interface-defs"],
                "ir/tfl_ops_interface.cc.inc",
            ),
            (
                ["-gen-dialect-decls"],
                "ir/tfl_ops_dialect.h.inc",
            ),
            (
                ["-gen-dialect-defs"],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    		p.error(p.pos, "invalid package name _")
    	}
    	p.expectSemi()
    
    	var decls []ast.Decl
    
    	// Don't bother parsing the rest if we had errors already.
    	// Likely not a Go source file at all.
    
    	if p.ErrorCount() == 0 && p.mode&PackageClauseOnly == 0 {
    		// import decls
    		for p.tok == token.IMPORT {
    			decls = append(decls, p.parseGenDecl(token.IMPORT, parseImportSpec))
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    	// Likely not a Go source file at all.
    	if p.errors.Len() != 0 {
    		return nil
    	}
    
    	var decls []ast.Decl
    	if p.mode&PackageClauseOnly == 0 {
    		// import decls
    		for p.tok == token.IMPORT {
    			decls = append(decls, p.parseGenDecl(token.IMPORT, p.parseImportSpec))
    		}
    
    		if p.mode&ImportsOnly == 0 {
    			// rest of package body
    			prev := token.IMPORT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    	if gm.Name() == "n" {
    		gm, gn = gn, gm
    	}
    
    	// Collect objects from info.
    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.Decls {
    		fdecl, ok := decl.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Name {
    		case "m":
    			dm = def
    			ast.Inspect(fdecl.Body, func(n ast.Node) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/go/printer/nodes.go

    		p.print(blank)
    	}
    	p.expr(d.Name)
    	p.signature(d.Type)
    	p.funcBody(p.distanceFrom(d.Pos(), startCol), vtab, d.Body)
    }
    
    func (p *printer) decl(decl ast.Decl) {
    	switch d := decl.(type) {
    	case *ast.BadDecl:
    		p.setPos(d.Pos())
    		p.print("BadDecl")
    	case *ast.GenDecl:
    		p.genDecl(d)
    	case *ast.FuncDecl:
    		p.funcDecl(d)
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    	if gm.Name() == "n" {
    		gm, gn = gn, gm
    	}
    
    	// Collect objects from info.
    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.DeclList {
    		fdecl, ok := decl.(*syntax.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Value {
    		case "m":
    			dm = def
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    			}
    		}
    	}
    
    	pos := p.pos()
    	p.want(close)
    	return pos
    }
    
    // appendGroup(f) = f | "(" { f ";" } ")" . // ";" is optional before ")"
    func (p *parser) appendGroup(list []Decl, f func(*Group) Decl) []Decl {
    	if p.tok == _Lparen {
    		g := new(Group)
    		p.clearPragma()
    		p.next() // must consume "(" after calling clearPragma!
    		p.list("grouped declaration", _Semi, _Rparen, func() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    				// Anonymous functions are considered part of the
    				// init expression/func declaration which contains
    				// them: use existing package-level declaration info.
    				decl := check.decl // capture for use in closure below
    				iota := check.iota // capture for use in closure below (go.dev/issue/22345)
    				// Don't type-check right away because the function may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    }
    
    // templateParamDecl parses:
    //
    //	<template-param-decl> ::= Ty                          # type parameter
    //	                      ::= Tn <type>                   # non-type parameter
    //	                      ::= Tt <template-param-decl>* E # template parameter
    //	                      ::= Tp <template-param-decl>    # parameter pack
    //
    // Returns the new AST to include in the AST we are building and the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/expr.go

    				// Anonymous functions are considered part of the
    				// init expression/func declaration which contains
    				// them: use existing package-level declaration info.
    				decl := check.decl // capture for use in closure below
    				iota := check.iota // capture for use in closure below (go.dev/issue/22345)
    				// Don't type-check right away because the function may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top