SyntaxNodeExtensions.NormalizeWhitespace 方法

定义

重载

NormalizeWhitespace<TNode>(TNode, String, Boolean)

创建一个新的语法节点,其中包含所有空白和行尾琐事,替换为定期格式化的琐事。

NormalizeWhitespace<TNode>(TNode, String, String, Boolean)

创建一个新的语法节点,其中包含所有空白和行尾琐事,替换为定期格式化的琐事。

NormalizeWhitespace<TNode>(TNode, String, Boolean)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

创建一个新的语法节点,其中包含所有空白和行尾琐事,替换为定期格式化的琐事。

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TNode NormalizeWhitespace(TNode node, System::String ^ indentation, bool elasticTrivia);
public static TNode NormalizeWhitespace<TNode> (this TNode node, string indentation, bool elasticTrivia) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member NormalizeWhitespace : 'Node * string * bool -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function NormalizeWhitespace(Of TNode As SyntaxNode) (node As TNode, indentation As String, elasticTrivia As Boolean) As TNode

类型参数

TNode

节点的类型。

参数

node
TNode

要设置格式的节点。

indentation
String

定义单个缩进级别的空格字符序列。

elasticTrivia
Boolean

如果为 true,则替换的琐事是弹性的琐事。

返回

TNode

适用于

NormalizeWhitespace<TNode>(TNode, String, String, Boolean)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

创建一个新的语法节点,其中包含所有空白和行尾琐事,替换为定期格式化的琐事。

public static TNode NormalizeWhitespace<TNode> (this TNode node, string indentation = "    ", string eol = "\r\n", bool elasticTrivia = false) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member NormalizeWhitespace : 'Node * string * string * bool -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function NormalizeWhitespace(Of TNode As SyntaxNode) (node As TNode, Optional indentation As String = "    ", Optional eol As String = "\r\n", Optional elasticTrivia As Boolean = false) As TNode

类型参数

TNode

节点的类型。

参数

node
TNode

要设置格式的节点。

indentation
String

定义单个缩进级别的空格字符的可选序列。

eol
String

用于行尾的空格字符的可选序列。

elasticTrivia
Boolean

如果为 true,则替换的琐事是弹性的琐事。

返回

TNode

适用于