Class CodeFormatterExtensions
A code formatter extensions.
Inheritance
System.Object
CodeFormatterExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Generation
Assembly: Kephas.CodeAnalysis.dll
Syntax
public static class CodeFormatterExtensions
Methods
| Improve this Doc View SourceCurrentIndent(ICodeFormatter)
An ICodeFormatter extension method that gets the current indent.
Declaration
public static string CurrentIndent(this ICodeFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
ICodeFormatter | formatter | The formatter to act on. |
Returns
Type | Description |
---|---|
System.String | The indent. |
DecreaseIndent(ICodeFormatter)
An ICodeFormatter extension method that decrease indent.
Declaration
public static void DecreaseIndent(this ICodeFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
ICodeFormatter | formatter | The formatter to act on. |
IncreaseIndent(ICodeFormatter)
An ICodeFormatter extension method that increase indent.
Declaration
public static void IncreaseIndent(this ICodeFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
ICodeFormatter | formatter | The formatter to act on. |