- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 124 for parseRule (0.16 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.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|parser.SkipObjectResolution) if err != nil { // Not valid Go source code - not our job to diagnose, so ignore. return nil, nil } checkGoFile(pass, f) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 9.3K bytes - Viewed (0) -
maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java
} catch (ToolchainsBuildingException e) { assertEquals( "1 problem was encountered while building the effective toolchains" + LS + "[FATAL] Non-parseable toolchains (memory): MESSAGE @ line 4, column 2" + LS, e.getMessage()); } } @Test void testIOException() throws Exception { Source src = mock(Source.class);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 14.4K bytes - Viewed (0) -
src/go/types/gotype.go
return } errorCount++ } // parse may be called concurrently. func parse(filename string, src any) (*ast.File, error) { if *verbose { fmt.Println(filename) } file, err := parser.ParseFile(fset, filename, src, parserMode) // ok to access fset concurrently if *printAST { ast.Print(fset, file) } return file, err } func parseStdin() (*ast.File, error) { src, err := io.ReadAll(os.Stdin)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 8.3K bytes - Viewed (0) -
tools/bug-report/pkg/cluster/cluster.go
} // PodIstioVersion returns the Istio version for the given pod, if either the proxy or discovery are one of its // containers and the tag is in a parseable format. func (r *Resources) PodIstioVersion(namespace, pod string) string { p := r.Pod[PodKey(namespace, pod)] if p == nil { return "" } for _, c := range p.Spec.Containers {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 14 02:11:31 UTC 2023 - 10.9K bytes - Viewed (1) -
src/cmd/compile/internal/syntax/printer_test.go
package syntax import ( "fmt" "io" "os" "strings" "testing" ) func TestPrint(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode") } ast, _ := ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0) if ast != nil { Fprint(testOut(), ast, LineForm) fmt.Println() } } type shortBuffer struct { buf []byte }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 17:08:18 UTC 2023 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
// Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX, // inclusive. // // Note: According to the spec, a NumberFormatException is thrown for a number that is not // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix. // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case // (which seems to make more sense). try {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 12.7K bytes - Viewed (0) -
src/go/types/example_test.go
func (c *Celsius) SetF(f float64) { *c = Celsius(f - 32 / 9 * 5) } type S struct { I; m int } type I interface { m() byte } ` fset := token.NewFileSet() f, err := parser.ParseFile(fset, "celsius.go", input, 0) if err != nil { log.Fatal(err) } // Type-check a package consisting of this file. // Type information for the imported packages
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/env/var_test.go
t.Errorf("Expected ABC, got %s", v) } if !present { t.Errorf("Expected present") } v = ev.Get() if v != "ABC" { t.Errorf("Expected ABC, got %s", v) } } func runTest[T Parseable](t *testing.T, name string, v1 T, s2 string, v2 T) { t.Run(name, func(t *testing.T) { reset() ev := Register(testVar, v1, "") v, present := ev.Lookup() if v != v1 { t.Errorf("Expected %v, got %v", v1, v)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 8.1K bytes - Viewed (0) -
cni/pkg/cmd/root.go
} func registerBooleanParameter(name string, value bool, usage string) { rootCmd.Flags().Bool(name, value, usage) registerEnvironment(name, value, usage) } func registerEnvironment[T env.Parseable](name string, defaultValue T, usage string) { envName := strings.Replace(strings.ToUpper(name), "-", "_", -1) // Note: we do not rely on istio env package to retrieve configuration. We relies on viper.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 13K bytes - Viewed (0) -
platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaMultiModuleIntegrationTest.groovy
'master-api.iml', 'master-util.iml'].each { assert moduleFileNames.contains(it) } } List parseIprModules() { def ipr = parseFile(project: '.', "master.ipr") ******@****.***t { it.text().replaceAll(/.*\//, "") } } @Test @ToBeFixedForConfigurationCache
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 19K bytes - Viewed (0)