Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for expectText (0.2 sec)

  1. src/cmd/asm/internal/lex/input.go

    	}
    	fmt.Fprintf(os.Stderr, "%s:%d: %s", in.File(), in.Line(), fmt.Sprintln(args...))
    	os.Exit(1)
    }
    
    // expectText is like Error but adds "got XXX" where XXX is a quoted representation of the most recent token.
    func (in *Input) expectText(args ...interface{}) {
    	in.Error(append(args, "; got", strconv.Quote(in.Stack.Text()))...)
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
Back to top