C# Class ShaderTools.Hlsl.Syntax.SyntaxFactory

Afficher le fichier Open project: tgjones/HlslTools

Méthodes publiques

Méthode Description
ParseAllTokens ( SourceText sourceText, IIncludeFileSystem fileSystem = null ) : IReadOnlyList
ParseCompilationUnit ( string text, IIncludeFileSystem fileSystem = null ) : CompilationUnitSyntax
ParseExpression ( string text ) : SyntaxTree
ParseStatement ( string text ) : StatementSyntax
ParseSyntaxTree ( SourceText sourceText, ParserOptions options = null, IIncludeFileSystem fileSystem = null, CancellationToken cancellationToken = default(CancellationToken) ) : SyntaxTree
ParseToken ( string text ) : SyntaxToken

Private Methods

Méthode Description
Parse ( SourceText sourceText, ParserOptions options, IIncludeFileSystem fileSystem, SyntaxNode>.Func parseFunc ) : SyntaxTree

Method Details

ParseAllTokens() public static méthode

public static ParseAllTokens ( SourceText sourceText, IIncludeFileSystem fileSystem = null ) : IReadOnlyList
sourceText ShaderTools.Core.Text.SourceText
fileSystem IIncludeFileSystem
Résultat IReadOnlyList

ParseCompilationUnit() public static méthode

public static ParseCompilationUnit ( string text, IIncludeFileSystem fileSystem = null ) : CompilationUnitSyntax
text string
fileSystem IIncludeFileSystem
Résultat CompilationUnitSyntax

ParseExpression() public static méthode

public static ParseExpression ( string text ) : SyntaxTree
text string
Résultat SyntaxTree

ParseStatement() public static méthode

public static ParseStatement ( string text ) : StatementSyntax
text string
Résultat StatementSyntax

ParseSyntaxTree() public static méthode

public static ParseSyntaxTree ( SourceText sourceText, ParserOptions options = null, IIncludeFileSystem fileSystem = null, CancellationToken cancellationToken = default(CancellationToken) ) : SyntaxTree
sourceText ShaderTools.Core.Text.SourceText
options ShaderTools.Hlsl.Parser.ParserOptions
fileSystem IIncludeFileSystem
cancellationToken System.Threading.CancellationToken
Résultat SyntaxTree

ParseToken() public static méthode

public static ParseToken ( string text ) : SyntaxToken
text string
Résultat SyntaxToken