Class RefactoringTitles
- Namespace
- RDCore.SDK.Semantics.Refactoring
- Assembly
- RDCore.SDK.dll
What the platform's code actions are called, in the language of the reader.
public static class RefactoringTitles
- Inheritance
-
RefactoringTitles
- Inherited Members
Methods
DisableDiagnostic(RDCoreDiagnosticCode, SettingScope, CultureInfo?)
The title of the code action that disables the diagnostics of a code (Analysis.DisabledDiagnostics): Disable RDC01001 in every workspace,
or Disable RDC01001 in this workspace.
public static string DisableDiagnostic(RDCoreDiagnosticCode code, SettingScope scope, CultureInfo? culture = null)
Parameters
codeRDCoreDiagnosticCodeThe code.
scopeSettingScopeWhere the code is disabled: the user's settings of the platform, or the workspace's.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
References(int, CultureInfo?)
The title of the code lens that counts the references of a member: 3 references.
public static string References(int count, CultureInfo? culture = null)
Parameters
countintThe number of references.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
Remarks
Each language says none, one and more its own way: French says 0 référence, English 0 references.
Rename(string, CultureInfo?)
The title of the code action that renames a symbol to a name the user chooses: Rename 'x'….
public static string Rename(string name, CultureInfo? culture = null)
Parameters
namestringThe name the symbol is declared with.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameInStringDescription(string, CultureInfo?)
What the edits of RenameInStringLabel(CultureInfo?) are, less prominently than the label (LSP 3.17 ChangeAnnotation.description):
why the user is asked.
public static string RenameInStringDescription(string name, CultureInfo? culture = null)
Parameters
namestringThe name the symbol is declared with.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameInStringLabel(CultureInfo?)
The label of a rename's edits of the strings a library calls the symbol by (RenameEdit.IsInString): Called by its name in a string.
A client that takes change annotations shows it with the edits it asks its user to confirm (LSP 3.17 ChangeAnnotation.label).
public static string RenameInStringLabel(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameInStringLeave(CultureInfo?)
The answer to RenameInStringQuestion(string, int, string, CultureInfo?) that renames the symbol and leaves the strings as they are.
public static string RenameInStringLeave(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameInStringQuestion(string, int, string, CultureInfo?)
What the user of a client that does not take change annotations is asked, before a rename's edits of the strings a library calls the symbol by are sent
to it: 'Foo' is called by its name in 2 strings, the first at Module1 4:12. Rename it there too?
public static string RenameInStringQuestion(string name, int count, string where, CultureInfo? culture = null)
Parameters
namestringThe name the symbol is declared with.
countintHow many strings the rename edits.
wherestringWhere the first of them is, as the client names a position.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameInStringRename(CultureInfo?)
The answer to RenameInStringQuestion(string, int, string, CultureInfo?) that renames the name in the strings too.
public static string RenameInStringRename(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameLateBoundDescription(string, string, bool, CultureInfo?)
What the edits of RenameLateBoundLabel(string, bool, CultureInfo?) are, less prominently than the label (LSP 3.17 ChangeAnnotation.description):
why the user is asked.
public static string RenameLateBoundDescription(string name, string className, bool isBacked, CultureInfo? culture = null)
Parameters
namestringThe name the symbol is declared with.
classNamestringThe name of the class the symbol is a member of.
isBackedboolWhether what is known of the objects backs the member.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameLateBoundLabel(string, bool, CultureInfo?)
The label of a rename's edits of the members accessed late-bound that may be the symbol (RenameEdit.IsLateBound), which a client that
takes change annotations shows with the edits it asks its user to confirm (LSP 3.17 ChangeAnnotation.label):
Late-bound: the object holds a Class1 where what is known of the object backs the member (RenameEdit.IsBacked),
Late-bound: the object may hold a Class1 where nothing rules it out.
public static string RenameLateBoundLabel(string className, bool isBacked, CultureInfo? culture = null)
Parameters
classNamestringThe name of the class the symbol is a member of.
isBackedboolWhether what is known of the objects backs the member.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameLateBoundLeave(CultureInfo?)
The answer to RenameLateBoundQuestion(string, string, bool, int, string, CultureInfo?) that renames the symbol and leaves the late-bound accesses as they are.
public static string RenameLateBoundLeave(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameLateBoundQuestion(string, string, bool, int, string, CultureInfo?)
What a client that does not take change annotations asks its user before the rename edits the members accessed late-bound that may be the symbol:
'Foo' is accessed late-bound on objects that hold a Class1, in 2 places, the first at Module1 4:12. Rename it there too?
public static string RenameLateBoundQuestion(string name, string className, bool isBacked, int count, string where, CultureInfo? culture = null)
Parameters
namestringThe name the symbol is declared with.
classNamestringThe name of the class the symbol is a member of.
isBackedboolWhether what is known of the objects backs the member.
countintHow many late-bound accesses the rename edits.
wherestringWhere the first of them is, as the client names a position.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameLateBoundRename(CultureInfo?)
The answer to RenameLateBoundQuestion(string, string, bool, int, string, CultureInfo?) that renames the late-bound accesses too.
public static string RenameLateBoundRename(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameOutsideCallersCancel(CultureInfo?)
The answer to RenameOutsideCallersQuestion(string, CultureInfo?) that renames nothing: the whole rename is canceled.
public static string RenameOutsideCallersCancel(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameOutsideCallersDescription(string, CultureInfo?)
What the edits of RenameOutsideCallersLabel(CultureInfo?) are, less prominently than the label (LSP 3.17
ChangeAnnotation.description): why the user is asked, and that declining them cancels the rename.
public static string RenameOutsideCallersDescription(string name, CultureInfo? culture = null)
Parameters
namestringThe name the procedure is declared with.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameOutsideCallersLabel(CultureInfo?)
The label of the edits of a rename of a Public procedure of a standard module, which something outside the code may call by its name (a
list of macros, a button, another project): May be called by its name from outside the code. A client that takes change annotations shows it
with the edits it asks its user to confirm (LSP 3.17 ChangeAnnotation.label); declining them cancels the rename.
public static string RenameOutsideCallersLabel(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameOutsideCallersQuestion(string, CultureInfo?)
What the user of a client that does not take change annotations is asked, before the edits of a rename of a Public procedure of a standard
module are sent to it: 'Foo' is a Public procedure of a standard module: […] Rename it anyway?
public static string RenameOutsideCallersQuestion(string name, CultureInfo? culture = null)
Parameters
namestringThe name the procedure is declared with.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameOutsideCallersRename(CultureInfo?)
The answer to RenameOutsideCallersQuestion(string, CultureInfo?) that renames the procedure.
public static string RenameOutsideCallersRename(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
RenameTo(string, string, CultureInfo?)
The title of the code action that renames a symbol to a name it suggests: Rename 'strName' to 'Name'.
public static string RenameTo(string name, string newName, CultureInfo? culture = null)
Parameters
namestringThe name the symbol is declared with.
newNamestringThe name it is renamed to.
cultureCultureInfoThe language of the reader; the current UI culture by default.
Returns
SettingListNotTaken(CultureInfo?)
Why the language server does not change a list of the client's settings: the client does not accept such changes from it (ListSettingValue).
public static string SettingListNotTaken(CultureInfo? culture = null)
Parameters
cultureCultureInfoThe language of the reader; the current UI culture by default.