C# Class ShaderTools.Unity.Syntax.SyntaxFacts

Mostra file Open project: tgjones/HlslTools

Public Methods

Method Description
GetContextualKeywordKind ( string text ) : SyntaxKind
GetDisplayText ( this token ) : string
GetLiteralExpression ( SyntaxKind kind ) : SyntaxKind
GetPrefixUnaryExpression ( SyntaxKind kind, bool forPreprocessor = false ) : SyntaxKind
GetText ( this kind ) : string
GetUnityKeywordKind ( string text ) : SyntaxKind
IsComment ( this kind ) : bool
IsKeyword ( this kind ) : bool
IsNumericLiteral ( this kind ) : bool
IsOperator ( this kind ) : bool
IsPunctuation ( this kind ) : bool
IsWhitespace ( this kind ) : bool

Method Details

GetContextualKeywordKind() public static method

public static GetContextualKeywordKind ( string text ) : SyntaxKind
text string
return SyntaxKind

GetDisplayText() public static method

public static GetDisplayText ( this token ) : string
token this
return string

GetLiteralExpression() public static method

public static GetLiteralExpression ( SyntaxKind kind ) : SyntaxKind
kind SyntaxKind
return SyntaxKind

GetPrefixUnaryExpression() public static method

public static GetPrefixUnaryExpression ( SyntaxKind kind, bool forPreprocessor = false ) : SyntaxKind
kind SyntaxKind
forPreprocessor bool
return SyntaxKind

GetText() public static method

public static GetText ( this kind ) : string
kind this
return string

GetUnityKeywordKind() public static method

public static GetUnityKeywordKind ( string text ) : SyntaxKind
text string
return SyntaxKind

IsComment() public static method

public static IsComment ( this kind ) : bool
kind this
return bool

IsKeyword() public static method

public static IsKeyword ( this kind ) : bool
kind this
return bool

IsNumericLiteral() public static method

public static IsNumericLiteral ( this kind ) : bool
kind this
return bool

IsOperator() public static method

public static IsOperator ( this kind ) : bool
kind this
return bool

IsPunctuation() public static method

public static IsPunctuation ( this kind ) : bool
kind this
return bool

IsWhitespace() public static method

public static IsWhitespace ( this kind ) : bool
kind this
return bool