SyntaxFactory.ParseTokens Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parse tokens in the input. Since this API does not create a SyntaxNode that owns all produced tokens, the GetLocation() API may yield surprising results for the produced tokens and its behavior is generally unspecified.
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory+VB$StateMachine_1128_ParseTokens))]
public static System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken> ParseTokens (string text, int offset = 0, int initialTokenPosition = 0, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions options = default);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory+VB$StateMachine_1130_ParseTokens))]
public static System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxToken> ParseTokens (string text, int offset = 0, int initialTokenPosition = 0, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions options = default);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory+VB$StateMachine_1128_ParseTokens))>]
static member ParseTokens : string * int * int * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions -> seq<Microsoft.CodeAnalysis.SyntaxToken>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory+VB$StateMachine_1130_ParseTokens))>]
static member ParseTokens : string * int * int * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions -> seq<Microsoft.CodeAnalysis.SyntaxToken>
Public Shared Iterator Function ParseTokens (text As String, Optional offset As Integer = 0, Optional initialTokenPosition As Integer = 0, Optional options As VisualBasicParseOptions = Nothing) As IEnumerable(Of SyntaxToken)
Parameters
- text
- String
The input string
- offset
- Int32
The starting offset in the string
- initialTokenPosition
- Int32
The position of the first token
- options
- VisualBasicParseOptions
Returns
- Attributes
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.