Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for parseFile (0.12 seconds)

  1. src/cmd/api/main_test.go

    	}
    	slices.Sort(fs)
    	return
    }
    
    var parsedFileCache = make(map[string]*ast.File)
    
    func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
    	filename := filepath.Join(dir, file)
    	if f := parsedFileCache[filename]; f != nil {
    		return f, nil
    	}
    
    	f, err := parser.ParseFile(fset, filename, nil, parser.ParseComments)
    	if err != nil {
    		return nil, err
    	}
    	parsedFileCache[filename] = f
    
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Mar 02 13:20:41 GMT 2026
    - 31.4K bytes
    - Click Count (0)
  2. src/cmd/cgo/ast.go

    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    	ast1, err := parser.ParseFile(fset, name, src, flags)
    	if err != nil {
    		if list, ok := err.(scanner.ErrorList); ok {
    			// If err is a scanner.ErrorList, its String will print just
    			// the first error and then (+n more errors).
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:59 GMT 2026
    - 14.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            int[] result = IntervalControlHelper.parseTime("12:30");
            assertEquals(12, result[0]);
            assertEquals(30, result[1]);
    
            result = IntervalControlHelper.parseTime("00:00");
            assertEquals(0, result[0]);
            assertEquals(0, result[1]);
    
            result = IntervalControlHelper.parseTime("23:59");
            assertEquals(23, result[0]);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingOperations.java

                final long parseTime = System.currentTimeMillis();
                final SuggestIndexResponse response = indexingOps.index(ctx.getIndex(), array, ctx.getBadWords());
                final long indexTime = System.currentTimeMillis();
    
                if (logger.isInfoEnabled()) {
                    printProcessingInfo("queries", queryLogs.length, array, parseTime - start, indexTime - parseTime);
                }
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

             */
            public IntervalRule(final String from, final String to, final String days, final long delay) {
                final int[] fints = parseTime(from);
                fromHours = fints[0];
                fromMinutes = fints[1];
                final int[] tints = parseTime(to);
                toHours = tints[0];
                toMinutes = tints[1];
                final String[] values = days.split(",");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 10K bytes
    - Click Count (0)
  6. .github/workflows/tests.yml

            key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }}
    
        - name: Tests
          run: GITHUB_ACTION=true GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True" ./tests/tests_all.sh
    
      mariadb:
        strategy:
          matrix:
            dbversion: [ 'mariadb:latest' ]
            go: ['stable', 'oldstable']
            platform: [ ubuntu-latest ]
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Mar 23 10:05:06 GMT 2026
    - 9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/webapp/WebXmlTest.java

                    webXmlDocument = builder.parse(file);
                }
            }
        }
    
        @Test
        public void test_webXmlExists() {
            assertNotNull(webXmlDocument, "web.xml should be parseable");
        }
    
        @Test
        public void test_servletVersion() {
            if (webXmlDocument == null) {
                return;
            }
            final Element root = webXmlDocument.getDocumentElement();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 09:08:35 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

         * Gets an attribute value as an integer.
         *
         * @param attributes the named node map of attributes
         * @param name the attribute name
         * @return the attribute value as Integer, null if not found or not parseable
         */
        protected Integer getAttributeAsInteger(final NamedNodeMap attributes, final String name) {
            final Node namedItem = attributes.getNamedItem(name);
            if (namedItem == null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (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;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 17 09:48:21 GMT 2026
    - 133.5K bytes
    - Click Count (0)
  10. lib/fips140/v1.26.0.zip

    "ringDecodeAndDecompr": "ringDecodeAndDecompr", "ringDecodeAndDecompr": "ringDecodeAndDecompr", } func main() { inputFile := flag.String("input", "", "") outputFile := flag.String("output", "", "") flag.Parse() fset := token.NewFileSet() f, err := parser.ParseFile(fset, *inputFile, nil, parser.SkipObjectResolution|parser.ParseComments) if err != nil { log.Fatal(err) } cmap := ast.NewCommentMap(fset, f, f.Comments) // Drop header comments. cmap[ast.Node(f)] = nil // Remove top-level consts used across the main...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 08 17:58:32 GMT 2026
    - 660.3K bytes
    - Click Count (0)
Back to Top