Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TextEdits (0.1 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/diagnostic.go

    // meant to fix the issue flagged by the diagnostic.
    //
    // The TextEdits must not overlap, nor contain edits for other packages.
    type SuggestedFix struct {
    	// A description for this suggested fix to be shown to a user deciding
    	// whether to accept it.
    	Message   string
    	TextEdits []TextEdit
    }
    
    // A TextEdit represents the replacement of the code between Pos and End with the new text.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    		}
    
    		if convertibleToRune {
    			diag.SuggestedFixes = []analysis.SuggestedFix{
    				{
    					Message: "Did you mean to convert a rune to a string?",
    					TextEdits: []analysis.TextEdit{
    						{
    							Pos:     arg.Pos(),
    							End:     arg.Pos(),
    							NewText: []byte("rune("),
    						},
    						{
    							Pos:     arg.End(),
    							End:     arg.End(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top