- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for TextEdits (0.33 sec)
-
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) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go
if le == re { pass.Report(analysis.Diagnostic{ Pos: stmt.Pos(), Message: fmt.Sprintf("self-assignment of %s to %s", re, le), SuggestedFixes: []analysis.SuggestedFix{ {Message: "Remove", TextEdits: []analysis.TextEdit{ {Pos: stmt.Pos(), End: stmt.End(), NewText: []byte{}}, }}, }, }) } } }) return nil, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/sigchanyzer/sigchanyzer.go
Pos: call.Pos(), End: call.End(), Message: "misuse of unbuffered os.Signal channel as argument to signal.Notify", SuggestedFixes: []analysis.SuggestedFix{{ Message: "Change to buffer channel", TextEdits: []analysis.TextEdit{{ Pos: chanDecl.Pos(), End: chanDecl.End(), NewText: buf.Bytes(), }}, }}, }) }) return nil, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/timeformat.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/composite/composite.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
Start int `json:"start"` End int `json:"end"` New string `json:"new"` } // A JSONSuggestedFix describes an edit that should be applied as a whole or not // at all. It might contain multiple TextEdits/text_edits if the SuggestedFix // consists of multiple non-contiguous edits. type JSONSuggestedFix struct { Message string `json:"message"` Edits []JSONTextEdit `json:"edits"` }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go
default: d.pass.Report(analysis.Diagnostic{ Pos: stmt.Pos(), End: stmt.End(), Message: "unreachable code", SuggestedFixes: []analysis.SuggestedFix{{ Message: "Remove", TextEdits: []analysis.TextEdit{{ Pos: stmt.Pos(), End: stmt.End(), }}, }}, }) d.reachable = true // silence error about next statement } } switch x := stmt.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 7.6K bytes - Viewed (0)