- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 170 for parseDir (0.16 sec)
-
src/internal/reflectlite/reflect_mirror_test.go
} return v } func loadTypes(path, pkgName string, v visitor) { fset := token.NewFileSet() filter := func(fi fs.FileInfo) bool { return strings.HasSuffix(fi.Name(), ".go") } pkgs, err := parser.ParseDir(fset, path, filter, 0) if err != nil { panic(err) } pkg := pkgs[pkgName] for _, f := range pkg.Files { ast.Walk(v, f) } } func TestMirrorWithReflect(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 21:11:15 UTC 2024 - 2.8K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
func (a *analyzer) collect(dir string) { if _, ok := a.donePaths[dir]; ok { return } a.donePaths[dir] = nil // Create the AST by parsing src. fs, err := parser.ParseDir(a.fset, dir, nil, parser.AllErrors|parser.ParseComments) if err != nil { fmt.Fprintln(os.Stderr, "ERROR(syntax)", logPrefix, err) a.failed = true return } for _, p := range fs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0) -
hack/verify-netparse-cve.sh
echo >&2 echo "Run ./hack/update-netparse-cve.sh" >&2 echo >&2 rc=1 fi # find files using net.ParseCIDR() netparsecidrs_matches=$(find_files | xargs grep -nE "net.ParseCIDR\(.*\)" 2>/dev/null) || true if [[ -n "${netparsecidrs_matches}" ]]; then echo "net.ParseCIDR reject leading zeros in the dot-decimal notation of IPv4 addresses since golang 1.17:" >&2 echo "${netparsecidrs_matches}" >&2 echo >&2
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:07:31 UTC 2024 - 2.3K bytes - Viewed (0) -
src/crypto/x509/parser.go
} rdnSet = append(rdnSet, attr) } rdnSeq = append(rdnSeq, rdnSet) } return &rdnSeq, nil } func parseAI(der cryptobyte.String) (pkix.AlgorithmIdentifier, error) { ai := pkix.AlgorithmIdentifier{} if !der.ReadASN1ObjectIdentifier(&ai.Algorithm) { return ai, errors.New("x509: malformed OID") } if der.Empty() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 38.5K bytes - Viewed (0) -
src/net/ip_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 01:17:29 UTC 2024 - 25.7K bytes - Viewed (0) -
src/net/ip.go
} // ParseIP parses s as an IP address, returning the result. // The string s can be in IPv4 dotted decimal ("192.0.2.1"), IPv6 // ("2001:db8::68"), or IPv4-mapped IPv6 ("::ffff:192.0.2.1") form. // If s is not a valid textual representation of an IP address, // ParseIP returns nil. func ParseIP(s string) IP { if addr, valid := parseIP(s); valid { return IP(addr[:]) } return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 13.9K bytes - Viewed (0) -
src/internal/trace/internal/oldtrace/parser.go
lastGs map[int32]uint64 lastP int32 } func (p *parser) discard(n uint64) bool { if n > math.MaxInt { return false } if noff := p.off + int(n); noff < p.off || noff > len(p.data) { return false } else { p.off = noff } return true } func newParser(r io.Reader, ver version.Version) (*parser, error) { var buf []byte if seeker, ok := r.(io.Seeker); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:15:28 UTC 2024 - 46.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
// and clears them from the parser state. func (p *parser) takePragma() Pragma { prag := p.pragma p.pragma = nil return prag } // clearPragma is called at the end of a statement or // other Go form that does NOT accept a pragma. // It sends the pragma back to the pragma handler // to be reported as unused. func (p *parser) clearPragma() { if p.pragma != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/Parser.kt
Sergey Igushkin <******@****.***> 1712225595 +0400
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 22:06:18 UTC 2024 - 2.6K bytes - Viewed (0) -
src/internal/trace/parser.go
Carlos Amedee <******@****.***> 1715110630 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:31:04 UTC 2024 - 4.7K bytes - Viewed (0)