Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 698 for idents (0.29 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

                    return true;
                }
            }
            return false;
        }
    
        /**
         * Indents every line of {@code text} by {@code indent}. Empty lines
         * and lines that only contain whitespace are not indented.
         */
        public static String indent(String text, String indent) {
            StringBuilder builder = new StringBuilder();
            String[] lines = text.split("\n");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/codegen_test.cc

      string ident;
      for (char c = 'a'; c <= 'z'; c++) {
        ident.append(1, c);
      }
      for (char c = 'A'; c <= 'Z'; c++) {
        ident.append(1, c);
      }
      for (char c = '0'; c <= '9'; c++) {
        ident.append(1, c);
      }
      ident += "_";
      ExpectOK(ident, ident, {});
      ExpectOK(ident + "::" + ident, ident, {ident});
      ExpectOK(ident + "::" + ident + "::" + ident, ident, {ident, ident});
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/text/scanner/scanner_test.go

    	{Comment, "// identifiers"},
    	{Ident, "a"},
    	{Ident, "a0"},
    	{Ident, "foobar"},
    	{Ident, "abc123"},
    	{Ident, "LGTM"},
    	{Ident, "_"},
    	{Ident, "_abc123"},
    	{Ident, "abc123_"},
    	{Ident, "_abc_123_"},
    	{Ident, "_äöü"},
    	{Ident, "_本"},
    	{Ident, "äöü"},
    	{Ident, "本"},
    	{Ident, "a۰۱۸"},
    	{Ident, "foo६४"},
    	{Ident, "bar9876"},
    	{Ident, f100},
    
    	{Comment, "// decimal ints"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  4. src/go/types/generate_test.go

    				return false
    			}
    		}
    		return true
    	})
    }
    
    // asIdent returns x as *ast.Ident if it is an identifier with the given name.
    func asIdent(x ast.Node, name string) *ast.Ident {
    	if ident, _ := x.(*ast.Ident); ident != nil && ident.Name == name {
    		return ident
    	}
    	return nil
    }
    
    // isIdent reports whether x is an identifier with the given name.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. src/go/scanner/scanner_test.go

    	{"var\n", "var"},
    
    	{"foo//comment\n", "IDENT COMMENT ;"},
    	{"foo//comment", "IDENT COMMENT ;"},
    	{"foo/*comment*/\n", "IDENT COMMENT ;"},
    	{"foo/*\n*/", "IDENT COMMENT ;"},
    	{"foo/*comment*/    \n", "IDENT COMMENT ;"},
    	{"foo/*\n*/    ", "IDENT COMMENT ;"},
    
    	{"foo    // comment\n", "IDENT COMMENT ;"},
    	{"foo    // comment", "IDENT COMMENT ;"},
    	{"foo    /*comment*/\n", "IDENT COMMENT ;"},
    	{"foo    /*\n*/", "IDENT COMMENT ;"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  6. src/go/types/resolver.go

    // and updates check.objMap. The object must not be a function or method.
    func (check *Checker) declarePkgObj(ident *ast.Ident, obj Object, d *declInfo) {
    	assert(ident.Name == obj.Name())
    
    	// spec: "A package-scope or file-scope identifier with name init
    	// may only be declared to be a function with this (func()) signature."
    	if ident.Name == "init" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. settings.gradle.kts

        private class NodeWriter(private val writer: PrintWriter, private val indent: String) {
            fun println() {
                writer.println()
            }
    
            fun node(node: String) {
                writer.print(indent)
                writer.println(node)
            }
    
            fun node(node: String, builder: NodeWriter.() -> Unit) {
                writer.print(indent)
                writer.println(node)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. src/text/template/parse/node.go

    // The names may be chained ('.x.y').
    // The period is dropped from each ident.
    type FieldNode struct {
    	NodeType
    	Pos
    	tr    *Tree
    	Ident []string // The identifiers in lexical order.
    }
    
    func (t *Tree) newField(pos Pos, ident string) *FieldNode {
    	return &FieldNode{tr: t, NodeType: NodeField, Pos: pos, Ident: strings.Split(ident[1:], ".")} // [1:] to drop leading period
    }
    
    func (f *FieldNode) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    			return false
    		}
    		if n.End() > pos {
    			return n.Pos() <= pos
    		}
    		ident, ok := n.(*ast.Ident)
    		if !ok || ident.Name == "_" {
    			return true
    		}
    		obj := info.Defs[ident]
    		if obj == nil || obj.Type() == nil {
    			return true
    		}
    		if _, ok := obj.(*types.TypeName); ok {
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/debug/buildinfo/buildinfo.go

    	// a format-specific function to load segment and section headers.
    	ident := make([]byte, 16)
    	if n, err := r.ReadAt(ident, 0); n < len(ident) || err != nil {
    		return "", "", errUnrecognizedFormat
    	}
    
    	var x exe
    	switch {
    	case bytes.HasPrefix(ident, []byte("\x7FELF")):
    		f, err := elf.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top