MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / preserveQuoteStyle

Function preserveQuoteStyle

tools/builtin.go:1404–1424  ·  view source on GitHub ↗
(originalSearch, actualFromFile, newString string)

Source from the content-addressed store, hash-verified

1402 EditWriteFailed = editErrorCode{11, "WRITE_FAILED"}
1403 EditReadFailed = editErrorCode{12, "READ_FAILED"}
1404 EditCascadingEdit = editErrorCode{13, "CASCADING_EDIT"}
1405
1406 editNoOp = editErrorCode{1, "NO_OP"}
1407 editFileNotFound = editErrorCode{4, "FILE_NOT_FOUND"}
1408 editNotebookRedirect = editErrorCode{5, "NOTEBOOK_REDIRECT"}
1409 editUnreadFile = editErrorCode{6, "UNREAD_FILE"}
1410 editStaleRead = editErrorCode{7, "STALE_READ"}
1411 editStringNotFound = editErrorCode{8, "STRING_NOT_FOUND"}
1412 editMultipleMatches = editErrorCode{9, "MULTIPLE_MATCHES"}
1413 editWriteFailed = editErrorCode{11, "WRITE_FAILED"}
1414 editReadFailed = editErrorCode{12, "READ_FAILED"}
1415 editCascadingEdit = editErrorCode{13, "CASCADING_EDIT"}
1416)
1417
1418func (c editErrorCode) Value() int { return c.value }
1419
1420func (c editErrorCode) Name() string { return c.name }
1421
1422func formatEditError(code editErrorCode, detail string) string {
1423 if detail != "" {
1424 return fmt.Sprintf("[ErrCode %d] %s: %s", code.value, code.name, detail)
1425 }
1426 return fmt.Sprintf("[ErrCode %d] %s", code.value, code.name)
1427}

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected