Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 124 for parseRule (0.39 sec)

  1. pilot/pkg/model/jwks_resolver.go

    		// If the new key is not parseable as JSON return an error since we will not want to use this key
    		log.Warnf("New JWKs public key JSON is not parseable: %s", newKeyString)
    		return false, err
    	}
    	if err := json.Unmarshal([]byte(oldKeyString), &oldJWKs); err != nil {
    		log.Warnf("Previous JWKs public key JSON is not parseable: %s", oldKeyString)
    		return true, nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go

    		if err := checkOtherFile(pass, name); err != nil {
    			return nil, err
    		}
    	}
    	for _, name := range pass.IgnoredFiles {
    		if strings.HasSuffix(name, ".go") {
    			f, err := parser.ParseFile(pass.Fset, name, nil, parser.ParseComments)
    			if err != nil {
    				// Not valid Go source code - not our job to diagnose, so ignore.
    				continue
    			}
    			checkGoFile(pass, f)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/ssa_test.go

    			continue
    		}
    		text, err := os.ReadFile(filepath.Join("testdata", f.Name()))
    		if err != nil {
    			t.Fatalf("can't read testdata/%s: %v", f.Name(), err)
    		}
    		fset := token.NewFileSet()
    		code, err := parser.ParseFile(fset, f.Name(), text, 0)
    		if err != nil {
    			t.Fatalf("can't parse testdata/%s: %v", f.Name(), err)
    		}
    		srcs = append(srcs, filepath.Join("testdata", f.Name()))
    		foundTest := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsBuilder.java

                        toolchainsSource.getLocation(),
                        loc != null ? loc.getLineNumber() : -1,
                        loc != null ? loc.getColumnNumber() : -1,
                        e,
                        "Non-parseable toolchains " + toolchainsSource.getLocation() + ": " + e.getMessage(),
                        BuilderProblem.Severity.FATAL));
                return PersistedToolchains.newInstance();
            } catch (IOException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/error_test.go

    		}
    
    		fmt.Println()
    		fmt.Println("Reported errors:")
    	}
    
    	f, err := os.Open(filename)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    
    	ParseFile(filename, func(err error) {
    		e, ok := err.(Error)
    		if !ok {
    			return
    		}
    
    		if *print {
    			fmt.Println(err)
    			return
    		}
    
    		orig := position{e.Pos.Line(), e.Pos.Col()}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  6. src/go/parser/resolver_test.go

    	for _, fi := range fis {
    		t.Run(fi.Name(), func(t *testing.T) {
    			fset := token.NewFileSet()
    			path := filepath.Join(dir, fi.Name())
    			src := readFile(path) // panics on failure
    			var mode Mode
    			file, err := ParseFile(fset, path, src, mode)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			// Compare the positions of objects resolved during parsing (fromParser)
    			// to those annotated in source comments (fromComments).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  7. src/go/doc/comment/testdata_test.go

    		return bytes.ReplaceAll(b, []byte("$\n"), []byte("\n"))
    	}
    	for _, file := range files {
    		t.Run(filepath.Base(file), func(t *testing.T) {
    			var pr Printer
    			a, err := txtar.ParseFile(file)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if len(a.Comment) > 0 {
    				err := json.Unmarshal(a.Comment, &pr)
    				if err != nil {
    					t.Fatalf("unmarshaling top json: %v", err)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/go/types/stdlib_test.go

    					}
    					const prefix = "-lang="
    					if strings.HasPrefix(arg, prefix) {
    						goVersion = arg[len(prefix):]
    					}
    				}
    			}
    		}
    
    		// parse and type-check file
    		file, err := parser.ParseFile(fset, filename, nil, 0)
    		if err == nil {
    			conf := Config{
    				GoVersion: goVersion,
    				Importer:  stdLibImporter,
    			}
    			_, err = conf.Check(filename, fset, []*ast.File{file}, nil)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  9. src/internal/trace/summary_test.go

    	for _, region := range summary.Regions {
    		basicGoroutineExecStatsChecks(t, &region.GoroutineExecStats)
    	}
    }
    
    func summarizeTraceTest(t *testing.T, testPath string) *trace.Summary {
    	trc, _, err := testtrace.ParseFile(testPath)
    	if err != nil {
    		t.Fatalf("malformed test %s: bad trace file: %v", testPath, err)
    	}
    	// Create the analysis state.
    	s := trace.NewSummarizer()
    
    	// Create a reader.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/mkbuiltin.go

    	} else {
    		err = os.WriteFile("builtin.go", out, 0666)
    	}
    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    func mkbuiltin(w io.Writer, name string) {
    	fset := token.NewFileSet()
    	f, err := parser.ParseFile(fset, filepath.Join("_builtin", name+".go"), nil, 0)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	var interner typeInterner
    
    	fmt.Fprintf(w, "var %sDecls = [...]struct { name string; tag int; typ int }{\n", name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top