Udostępnij za pośrednictwem


SyntaxExtensions.NormalizeWhitespace Method

Definition

Overloads

NormalizeWhitespace(SyntaxToken, String, Boolean)

Creates a new syntax token with all whitespace and end of line trivia replaced with regularly formatted trivia.

NormalizeWhitespace(SyntaxTriviaList, String, Boolean)

Creates a new syntax trivia list with all whitespace and end of line trivia replaced with regularly formatted trivia.

NormalizeWhitespace(SyntaxToken, String, String, Boolean)

Creates a new syntax token with all whitespace and end of line trivia replaced with regularly formatted trivia.

NormalizeWhitespace(SyntaxTriviaList, String, String, Boolean)

Creates a new syntax trivia list with all whitespace and end of line trivia replaced with regularly formatted trivia.

NormalizeWhitespace(SyntaxToken, String, Boolean)

Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs

Creates a new syntax token with all whitespace and end of line trivia replaced with regularly formatted trivia.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::SyntaxToken NormalizeWhitespace(Microsoft::CodeAnalysis::SyntaxToken token, System::String ^ indentation, bool elasticTrivia);
public static Microsoft.CodeAnalysis.SyntaxToken NormalizeWhitespace (this Microsoft.CodeAnalysis.SyntaxToken token, string indentation, bool elasticTrivia);
static member NormalizeWhitespace : Microsoft.CodeAnalysis.SyntaxToken * string * bool -> Microsoft.CodeAnalysis.SyntaxToken
<Extension()>
Public Function NormalizeWhitespace (token As SyntaxToken, indentation As String, elasticTrivia As Boolean) As SyntaxToken

Parameters

token
SyntaxToken

The token to normalize.

indentation
String

A sequence of whitespace characters that defines a single level of indentation.

elasticTrivia
Boolean

If true the replaced trivia is elastic trivia.

Returns

Applies to

NormalizeWhitespace(SyntaxTriviaList, String, Boolean)

Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs

Creates a new syntax trivia list with all whitespace and end of line trivia replaced with regularly formatted trivia.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::SyntaxTriviaList NormalizeWhitespace(Microsoft::CodeAnalysis::SyntaxTriviaList list, System::String ^ indentation, bool elasticTrivia);
public static Microsoft.CodeAnalysis.SyntaxTriviaList NormalizeWhitespace (this Microsoft.CodeAnalysis.SyntaxTriviaList list, string indentation, bool elasticTrivia);
static member NormalizeWhitespace : Microsoft.CodeAnalysis.SyntaxTriviaList * string * bool -> Microsoft.CodeAnalysis.SyntaxTriviaList
<Extension()>
Public Function NormalizeWhitespace (list As SyntaxTriviaList, indentation As String, elasticTrivia As Boolean) As SyntaxTriviaList

Parameters

list
SyntaxTriviaList

The trivia list to normalize.

indentation
String

A sequence of whitespace characters that defines a single level of indentation.

elasticTrivia
Boolean

If true the replaced trivia is elastic trivia.

Returns

Applies to

NormalizeWhitespace(SyntaxToken, String, String, Boolean)

Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs

Creates a new syntax token with all whitespace and end of line trivia replaced with regularly formatted trivia.

public static Microsoft.CodeAnalysis.SyntaxToken NormalizeWhitespace (this Microsoft.CodeAnalysis.SyntaxToken token, string indentation = "    ", string eol = "\r\n", bool elasticTrivia = false);
static member NormalizeWhitespace : Microsoft.CodeAnalysis.SyntaxToken * string * string * bool -> Microsoft.CodeAnalysis.SyntaxToken
<Extension()>
Public Function NormalizeWhitespace (token As SyntaxToken, Optional indentation As String = "    ", Optional eol As String = "\r\n", Optional elasticTrivia As Boolean = false) As SyntaxToken

Parameters

token
SyntaxToken

The token to normalize.

indentation
String

An optional sequence of whitespace characters that defines a single level of indentation.

eol
String

An optional sequence of whitespace characters used for end of line.

elasticTrivia
Boolean

If true the replaced trivia is elastic trivia.

Returns

Applies to

NormalizeWhitespace(SyntaxTriviaList, String, String, Boolean)

Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs
Source:
SyntaxExtensions.cs

Creates a new syntax trivia list with all whitespace and end of line trivia replaced with regularly formatted trivia.

public static Microsoft.CodeAnalysis.SyntaxTriviaList NormalizeWhitespace (this Microsoft.CodeAnalysis.SyntaxTriviaList list, string indentation = "    ", string eol = "\r\n", bool elasticTrivia = false);
static member NormalizeWhitespace : Microsoft.CodeAnalysis.SyntaxTriviaList * string * string * bool -> Microsoft.CodeAnalysis.SyntaxTriviaList
<Extension()>
Public Function NormalizeWhitespace (list As SyntaxTriviaList, Optional indentation As String = "    ", Optional eol As String = "\r\n", Optional elasticTrivia As Boolean = false) As SyntaxTriviaList

Parameters

list
SyntaxTriviaList

The trivia list to normalize.

indentation
String

An optional sequence of whitespace characters that defines a single level of indentation.

eol
String

An optional sequence of whitespace characters used for end of line.

elasticTrivia
Boolean

If true the replaced trivia is elastic trivia.

Returns

Applies to