共用方式為


SyntaxNodeExtensions.NormalizeWhitespace 方法

定義

多載

NormalizeWhitespace<TNode>(TNode, String, Boolean)

建立新的語法節點,其中包含所有空白字元和行尾,並以定期格式化的 Trivia 取代。

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

建立新的語法節點,其中包含所有空白字元和行尾,並以定期格式化的 Trivia 取代。

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

建立新的語法節點,其中包含所有空白字元和行尾,並以定期格式化的 Trivia 取代。

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,則取代的 Trivia 為彈性 Trivia。

傳回

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

建立新的語法節點,其中包含所有空白字元和行尾,並以定期格式化的 Trivia 取代。

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,則取代的 Trivia 為彈性 Trivia。

傳回

TNode

適用於