C# Class ShaderTools.Hlsl.Syntax.SyntaxFacts

Mostra file Open project: tgjones/HlslTools

Public Methods

Method Description
CanFollowCast ( SyntaxKind kind ) : bool
CanStartDeclaration ( SyntaxToken token ) : bool
GetAssignmentExpression ( SyntaxKind kind ) : SyntaxKind
GetBinaryExpression ( SyntaxKind kind ) : SyntaxKind
GetBinaryOperatorKind ( SyntaxKind kind ) : BinaryOperatorKind
GetContextualKeywordKind ( string text ) : SyntaxKind
GetDisplayText ( this token ) : string
GetKeywordKind ( string text ) : SyntaxKind
GetLiteralExpression ( SyntaxKind kind ) : SyntaxKind
GetOperatorPrecedence ( SyntaxKind op ) : uint
GetParameterDirection ( IList modifiers ) : ParameterDirection
GetPostfixUnaryExpression ( SyntaxKind kind ) : SyntaxKind
GetPredefinedObjectType ( SyntaxKind kind ) : PredefinedObjectType
GetPrefixUnaryExpression ( SyntaxKind kind, bool forPreprocessor = false ) : SyntaxKind
GetPreprocessorKeywordKind ( string text ) : SyntaxKind
GetText ( this kind ) : string
GetUnaryOperatorKind ( SyntaxKind kind ) : UnaryOperatorKind
HaveMatchingSignatures ( FunctionSyntax left, FunctionSyntax right ) : bool
IsAnyUnaryExpression ( SyntaxKind token ) : bool
IsAssignmentExpression ( SyntaxKind token ) : bool
IsBinaryExpression ( SyntaxKind token ) : bool
IsComment ( this kind ) : bool
IsDeclarationModifier ( SyntaxKind kind ) : bool
IsIdentifierOrKeyword ( this kind ) : bool
IsIfLikeDirective ( this kind ) : bool
IsKeyword ( this kind ) : bool
IsLiteral ( this kind ) : bool
IsNumericLiteral ( this kind ) : bool
IsOperator ( this kind ) : bool
IsParameterModifier ( SyntaxToken token ) : bool
IsPostfixUnaryExpression ( SyntaxKind token ) : bool
IsPredefinedMatrixType ( SyntaxKind kind ) : bool
IsPredefinedObjectType ( SyntaxToken token ) : bool
IsPredefinedScalarType ( SyntaxKind kind ) : bool
IsPredefinedType ( SyntaxToken token ) : bool
IsPredefinedVectorType ( SyntaxKind kind ) : bool
IsPrefixUnaryExpression ( SyntaxKind token, bool forPreprocessor = false ) : bool
IsPreprocessorDirective ( this kind ) : bool
IsPreprocessorKeyword ( this kind ) : bool
IsPunctuation ( this kind ) : bool
IsRightAssociative ( SyntaxKind op ) : bool
IsTrivia ( this kind ) : bool
IsWhitespace ( this kind ) : bool
IsWord ( this token ) : bool

Method Details

CanFollowCast() public static method

public static CanFollowCast ( SyntaxKind kind ) : bool
kind SyntaxKind
return bool

CanStartDeclaration() public static method

public static CanStartDeclaration ( SyntaxToken token ) : bool
token SyntaxToken
return bool

GetAssignmentExpression() public static method

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

GetBinaryExpression() public static method

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

GetBinaryOperatorKind() public static method

public static GetBinaryOperatorKind ( SyntaxKind kind ) : BinaryOperatorKind
kind SyntaxKind
return BinaryOperatorKind

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

GetKeywordKind() public static method

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

GetLiteralExpression() public static method

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

GetOperatorPrecedence() public static method

public static GetOperatorPrecedence ( SyntaxKind op ) : uint
op SyntaxKind
return uint

GetParameterDirection() public static method

public static GetParameterDirection ( IList modifiers ) : ParameterDirection
modifiers IList
return ParameterDirection

GetPostfixUnaryExpression() public static method

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

GetPredefinedObjectType() public static method

public static GetPredefinedObjectType ( SyntaxKind kind ) : PredefinedObjectType
kind SyntaxKind
return PredefinedObjectType

GetPrefixUnaryExpression() public static method

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

GetPreprocessorKeywordKind() public static method

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

GetText() public static method

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

GetUnaryOperatorKind() public static method

public static GetUnaryOperatorKind ( SyntaxKind kind ) : UnaryOperatorKind
kind SyntaxKind
return UnaryOperatorKind

HaveMatchingSignatures() public static method

public static HaveMatchingSignatures ( FunctionSyntax left, FunctionSyntax right ) : bool
left FunctionSyntax
right FunctionSyntax
return bool

IsAnyUnaryExpression() public static method

public static IsAnyUnaryExpression ( SyntaxKind token ) : bool
token SyntaxKind
return bool

IsAssignmentExpression() public static method

public static IsAssignmentExpression ( SyntaxKind token ) : bool
token SyntaxKind
return bool

IsBinaryExpression() public static method

public static IsBinaryExpression ( SyntaxKind token ) : bool
token SyntaxKind
return bool

IsComment() public static method

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

IsDeclarationModifier() public static method

public static IsDeclarationModifier ( SyntaxKind kind ) : bool
kind SyntaxKind
return bool

IsIdentifierOrKeyword() public static method

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

IsIfLikeDirective() public static method

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

IsKeyword() public static method

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

IsLiteral() public static method

public static IsLiteral ( 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

IsParameterModifier() public static method

public static IsParameterModifier ( SyntaxToken token ) : bool
token SyntaxToken
return bool

IsPostfixUnaryExpression() public static method

public static IsPostfixUnaryExpression ( SyntaxKind token ) : bool
token SyntaxKind
return bool

IsPredefinedMatrixType() public static method

public static IsPredefinedMatrixType ( SyntaxKind kind ) : bool
kind SyntaxKind
return bool

IsPredefinedObjectType() public static method

public static IsPredefinedObjectType ( SyntaxToken token ) : bool
token SyntaxToken
return bool

IsPredefinedScalarType() public static method

public static IsPredefinedScalarType ( SyntaxKind kind ) : bool
kind SyntaxKind
return bool

IsPredefinedType() public static method

public static IsPredefinedType ( SyntaxToken token ) : bool
token SyntaxToken
return bool

IsPredefinedVectorType() public static method

public static IsPredefinedVectorType ( SyntaxKind kind ) : bool
kind SyntaxKind
return bool

IsPrefixUnaryExpression() public static method

public static IsPrefixUnaryExpression ( SyntaxKind token, bool forPreprocessor = false ) : bool
token SyntaxKind
forPreprocessor bool
return bool

IsPreprocessorDirective() public static method

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

IsPreprocessorKeyword() public static method

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

IsPunctuation() public static method

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

IsRightAssociative() public static method

public static IsRightAssociative ( SyntaxKind op ) : bool
op SyntaxKind
return bool

IsTrivia() public static method

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

IsWhitespace() public static method

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

IsWord() public static method

public static IsWord ( this token ) : bool
token this
return bool