Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for errorfile (0.2 sec)

  1. src/cmd/asm/internal/asm/pseudo_test.go

    			parser.lineNum++
    			if !parser.pseudo(test.pseudo, tokenize(test.operands)) {
    				t.Fatalf("Wrong pseudo-instruction: %s", test.pseudo)
    			}
    			errorLine := buf.String()
    			if test.expected != errorLine {
    				t.Errorf("Unexpected error %q; expected %q", errorLine, test.expected)
    			}
    			buf.Reset()
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    var panicOnError bool
    
    func (p *Parser) errorf(format string, args ...interface{}) {
    	if panicOnError {
    		panic(fmt.Errorf(format, args...))
    	}
    	if p.lineNum == p.errorLine {
    		// Only one error per line.
    		return
    	}
    	p.errorLine = p.lineNum
    	if p.lex != nil {
    		// Put file and line information on head of message.
    		format = "%s:%d: " + format + "\n"
    		args = append([]interface{}{p.lex.File(), p.lineNum}, args...)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top