Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 104 for Semicolons (0.22 sec)

  1. src/go/parser/interface.go

    			}
    		}
    		p.errors.Sort()
    		err = p.errors.Err()
    	}()
    
    	// parse expr
    	p.init(fset, filename, text, mode)
    	expr = p.parseRhs()
    
    	// If a semicolon was inserted, consume it;
    	// report an error if there's more tokens.
    	if p.tok == token.SEMICOLON && p.lit == "\n" {
    		p.next()
    	}
    	p.expect(token.EOF)
    
    	return
    }
    
    // ParseExpr is a convenience function for obtaining the AST of an expression x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. src/mime/mediatype_test.go

    		{`attachment; filename="\"quoting\" tested.html"`,
    			"attachment",
    			m("filename", `"quoting" tested.html`)},
    		// #attwithquotedsemicolon
    		{`attachment; filename="Here's a semicolon;.html"`,
    			"attachment",
    			m("filename", "Here's a semicolon;.html")},
    		// #attwithfilenameandextparam
    		{`attachment; foo="bar"; filename="foo.html"`,
    			"attachment",
    			m("foo", "bar", "filename", "foo.html")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:58:37 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  3. src/go/scanner/scanner_test.go

    	for {
    		pos, tok, lit := scan.Scan()
    		if tok == token.EOF {
    			break
    		}
    		if tok == token.SEMICOLON && lit != ";" {
    			// Artificial semicolon:
    			// assert that position is EOF or that of a newline.
    			off := file.Offset(pos)
    			if off != len(input) && input[off] != '\n' {
    				t.Errorf("scanning <<%s>>, got SEMICOLON at offset %d, want newline or EOF", input, off)
    			}
    		}
    		lit = tok.String() // "\n" => ";"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  4. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/tasks/PerformanceTest.groovy

        }
    
        @Option(option = "scenarios", description = "A semicolon-separated list of performance test scenario ids to run.")
        void setScenarios(String scenarios) {
            this.scenarios = scenarios
        }
    
        @Optional
        @Input
        @Option(option = "baselines", description = "A comma or semicolon separated list of Gradle versions to be used as baselines for comparing.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Dec 03 03:46:18 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/tokenizer.go

    	line int
    	file *os.File // If non-nil, file descriptor to close.
    }
    
    func NewTokenizer(name string, r io.Reader, file *os.File) *Tokenizer {
    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    	s.Mode = scanner.ScanChars |
    		scanner.ScanFloats |
    		scanner.ScanIdents |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 20:35:21 UTC 2022
    - 3K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

    import org.jetbrains.kotlin.lexer.KtTokens.RBRACKET
    import org.jetbrains.kotlin.lexer.KtTokens.REGULAR_STRING_PART
    import org.jetbrains.kotlin.lexer.KtTokens.RPAR
    import org.jetbrains.kotlin.lexer.KtTokens.SEMICOLON
    import org.jetbrains.kotlin.lexer.KtTokens.WHITE_SPACE
    import kotlin.reflect.KProperty
    
    
    internal
    typealias Parser<T> = KotlinLexer.() -> ParserResult<T>
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreterTest.kt

                """,
                PluginRequestSpec("plugin-id-1"),
                PluginRequestSpec("plugin-id-2"),
            )
        }
    
        @Test
        fun `multiple plugins - id() separated by semicolon`() {
            assertStaticInterpretationOf(
                """
                    id("plugin-id-1") ; id("plugin-id-2")
                    ;
                """,
                PluginRequestSpec("plugin-id-1"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:15:27 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/PrecompiledScriptPluginTest.kt

                            "unused",
                            "nothing_to_inline"
                        )    ]
    
                        /* /* one more weird comment here */ */
    
                        package org.acme; // semicolon intentionally added to make sure it doesn't mess with processing
    
                    """
                ).id,
                equalTo("org.acme.my-script")
            )
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    			continue
    		}
    
    		apiresource := strings.Split(tokens[0], "/")
    		if len(apiresource) != 2 {
    			allErrors = append(allErrors, fmt.Errorf("--etcd-servers-overrides invalid, must be of format: group/resource#servers, where servers are URLs, semicolon separated"))
    			continue
    		}
    
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/printer.go

    	p.nlcount = 0
    }
    
    func (p *printer) writeString(s string) {
    	p.writeBytes([]byte(s))
    }
    
    // If impliesSemi returns true for a non-blank line's final token tok,
    // a semicolon is automatically inserted. Vice versa, a semicolon may
    // be omitted in those cases.
    func impliesSemi(tok token) bool {
    	switch tok {
    	case _Name,
    		_Break, _Continue, _Fallthrough, _Return,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
Back to top