Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for parseRule (0.21 sec)

  1. src/net/netip/netip_test.go

    		// IPv4 in class B form
    		"192.168.12345",
    		// IPv4 in class B form, with a small enough number to be
    		// parseable as a regular dotted decimal field.
    		"127.0.1",
    		// IPv4 in class A form
    		"192.1234567",
    		// IPv4 in class A form, with a small enough number to be
    		// parseable as a regular dotted decimal field.
    		"127.1",
    		// IPv4 field has value >255
    		"192.168.300.1",
    		// IPv4 with too many fields
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/test.go

    	// Pass in the overlaid source if we have an overlay for this file.
    	src, err := fsys.Open(filename)
    	if err != nil {
    		return err
    	}
    	defer src.Close()
    	f, err := parser.ParseFile(testFileSet, filename, src, parser.ParseComments|parser.SkipObjectResolution)
    	if err != nil {
    		return err
    	}
    	for _, d := range f.Decls {
    		n, ok := d.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. cmd/iam.go

    	spolicyStr, ok := spolicy.(string)
    	if !ok {
    		// Sub policy if set, should be a string reject
    		// malformed/malicious requests.
    		return
    	}
    
    	// Check if policy is parseable.
    	subPolicy, err := policy.ParseConfig(bytes.NewReader([]byte(spolicyStr)))
    	if err != nil {
    		// Log any error in input session policy config.
    		iamLogIf(GlobalContext, err)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. src/go/types/issues_test.go

    package p
    
    func A(func(any), ...any) {}
    func B[T any](T)          {}
    
    func _() {
    	A(B, nil // syntax error: missing ',' before newline in argument list
    }
    `
    	fset := token.NewFileSet()
    	f, err := parser.ParseFile(fset, pkgName(src), src, 0)
    	if err == nil {
    		t.Fatal("expected syntax error")
    	}
    
    	var conf Config
    	conf.Check(f.Name.Name, fset, []*ast.File{f}, nil) // must not panic
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/cmd/cover/cover.go

    func (p *Package) annotateFile(name string, fd io.Writer) {
    	fset := token.NewFileSet()
    	content, err := os.ReadFile(name)
    	if err != nil {
    		log.Fatalf("cover: %s: %s", name, err)
    	}
    	parsedFile, err := parser.ParseFile(fset, name, content, parser.ParseComments)
    	if err != nil {
    		log.Fatalf("cover: %s: %s", name, err)
    	}
    
    	file := &File{
    		fset:    fset,
    		name:    name,
    		content: content,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                    }
                }
            } catch (XmlReaderException e) {
                problems.add(
                        Severity.FATAL,
                        ModelProblem.Version.BASE,
                        "Non-parseable POM " + modelSource.getLocation() + ": " + e.getMessage(),
                        e);
                throw problems.newModelBuilderException();
            } catch (IOException e) {
                String msg = e.getMessage();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Jun 07 07:31:02 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                    }
                }
            } catch (ModelParseException e) {
                problems.add(new ModelProblemCollectorRequest(Severity.FATAL, ModelProblem.Version.BASE)
                        .setMessage("Non-parseable POM " + modelSource.getLocation() + ": " + e.getMessage())
                        .setException(e));
                throw problems.newModelBuildingException();
            } catch (IOException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 21 09:54:32 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  8. src/time/format.go

    }
    
    // Parse parses a formatted string and returns the time value it represents.
    // See the documentation for the constant called [Layout] to see how to
    // represent the format. The second argument must be parseable using
    // the format string (layout) provided as the first argument.
    //
    // The example for [Time.Format] demonstrates the working of the layout string
    // in detail and is a good reference.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  9. api/maven-api-model/src/main/mdo/maven.mdo

              <code>
                <![CDATA[
        public static final String SOURCE_POM = "pom";
    
        public static final String SOURCE_SETTINGS = "settings.xml";
    
        // We don't want this to be parseable...it's sort of 'hidden'
        // default source for this profile is in the pom itself.
        private String source = SOURCE_POM;
    
        public void setSource(String source) {
            this.source = source;
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 13:29:46 UTC 2024
    - 115.1K bytes
    - Viewed (0)
  10. src/go/types/api_test.go

    	"slices"
    	"strings"
    	"sync"
    	"testing"
    
    	. "go/types"
    )
    
    // nopos indicates an unknown position
    var nopos token.Pos
    
    func mustParse(fset *token.FileSet, src string) *ast.File {
    	f, err := parser.ParseFile(fset, pkgName(src), src, parser.ParseComments)
    	if err != nil {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return f
    }
    
    func typecheck(src string, conf *Config, info *Info) (*Package, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top