Click or drag to resize

SyntaxFacts Class



Provides members for determining Syntax facts about characters and Unicode conversions.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.VisualBasicSyntaxFacts

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class SyntaxFacts

The SyntaxFacts type exposes the following members.

Constructors
  NameDescription
Public methodSyntaxFacts
Initializes a new instance of the SyntaxFacts class
Top
Properties
  NameDescription
Public propertyStatic memberEqualityComparer
A custom equality comparer for SyntaxKind
Top
Methods
  NameDescription
Public methodStatic memberAllowsLeadingImplicitLineContinuation
Indicates whether a newline may validly precede the specified SyntaxToken without requiring an explicit line continuation sequence ' _' or terminating the containing statement.
Public methodStatic memberAllowsTrailingImplicitLineContinuation
Indicates whether a newline may validly follow the specified SyntaxToken without requiring an explicit line continuation sequence ' _' or terminating the containing statement.
Public methodStatic memberGetAccessorStatementKind
Public methodStatic memberGetBaseTypeStatementKind
Public methodStatic memberGetBinaryExpression
Public methodStatic memberGetBlockName
Return keyword or punctuation text based on SyntaxKind
Public methodStatic memberGetContextualKeywordKind
Public methodStatic memberGetContextualKeywordKinds
Get contextual keywords
Public methodStatic memberGetInstanceExpression
Return correspondent expression syntax for 'Me', 'MyBase' and 'MyClass' keywords or SyntaxKind.None for other syntax kinds
Public methodStatic memberGetKeywordKind
Public methodStatic memberGetKeywordKinds
Get all reserved and contextual keywords
Public methodStatic memberGetLiteralExpression
Public methodStatic memberGetOperatorKind
Public methodStatic memberGetPreprocessorKeywordKind
Public methodStatic memberGetPreprocessorKeywordKinds
Get preprocessor keywords
Public methodStatic memberGetPunctuationKinds
Get punctuations
Public methodStatic memberGetReservedKeywordKinds
Get all reserved keywords
Public methodStatic memberGetText(Accessibility)
Public methodStatic memberGetText(SyntaxKind)
Return keyword or punctuation text based on SyntaxKind
Public methodStatic memberGetTypeStatementKind
Public methodStatic memberGetUnaryExpression
Public methodStatic memberIsAccessibilityModifier
Public methodStatic memberIsAccessorBlock
Public methodStatic memberIsAccessorStatement
Public methodStatic memberIsAccessorStatementAccessorKeyword
Public methodStatic memberIsAccessorStatementKeyword Obsolete.
Public methodStatic memberIsAddRemoveHandlerStatement
Public methodStatic memberIsAddRemoveHandlerStatementAddHandlerOrRemoveHandlerKeyword
Public methodStatic memberIsAddressOfOperand
Returns true if the node is the operand of an AddressOf expression
Public methodStatic memberIsAnyToken
Public methodStatic memberIsAssignmentStatement
Public methodStatic memberIsAssignmentStatementOperatorToken
Public methodStatic memberIsAttributeName
Checks if the SyntaxNode is an attribute name. To be an attribute name, the syntax must be parented by an Attribute and the node itself must be equal to the Attribute.Name property.
Public methodStatic memberIsAttributeTargetAttributeModifier
Public methodStatic memberIsBinaryExpression
Public methodStatic memberIsBinaryExpressionOperatorToken
Public methodStatic memberIsCaseBlock
Public methodStatic memberIsCaseStatement
Public methodStatic memberIsColon
Determines if the unicode character is a colon character.
Public methodStatic memberIsContextualKeyword
Determine if the kind represents a contextual keyword
Public methodStatic memberIsContinueStatement
Public methodStatic memberIsContinueStatementBlockKeyword
Public methodStatic memberIsCrefOperatorReferenceOperatorToken
Public methodStatic memberIsCrefSignaturePartModifier
Public methodStatic memberIsDeclareStatement
Public methodStatic memberIsDeclareStatementCharsetKeyword
Public methodStatic memberIsDeclareStatementKeyword Obsolete.
Public methodStatic memberIsDeclareStatementSubOrFunctionKeyword
Public methodStatic memberIsDelegateStatement
Public methodStatic memberIsDelegateStatementKeyword Obsolete.
Public methodStatic memberIsDelegateStatementSubOrFunctionKeyword
Public methodStatic memberIsDoLoopBlock
Public methodStatic memberIsDoStatement
Public methodStatic memberIsEndBlockStatement
Public methodStatic memberIsEndBlockStatementBlockKeyword
Public methodStatic memberIsExitStatement
Public methodStatic memberIsExitStatementBlockKeyword
Public methodStatic memberIsHash
Determines if the unicode character is a hash character.
Public methodStatic memberIsIdentifierPartCharacter
Determines if the Unicode character can be a part of a Visual Basic identifier.
Public methodStatic memberIsIdentifierStartCharacter
Determines if the Unicode character can be the starting character of a Visual Basic identifier.
Public methodStatic memberIsIfDirectiveTrivia
Public methodStatic memberIsIfDirectiveTriviaIfOrElseIfKeyword
Public methodStatic memberIsInNamespaceOrTypeContext
Public methodStatic memberIsInstanceExpression
Determine if the token instance represents 'Me', 'MyBase' or 'MyClass' keywords
Public methodStatic memberIsInTypeOnlyContext
Public methodStatic memberIsInvocationOrAddressOfOperand
Returns true if the node is the operand of an AddressOf expression, or the object of an invocation. This is used for special binding rules around the return value variable inside Functions and Property Get accessors.
Public methodStatic memberIsInvoked
Returns true if the node is the object of an invocation expression
Public methodStatic memberIsKeywordEventContainerKeyword
Public methodStatic memberIsKeywordKind
Public methodStatic memberIsLabel
Public methodStatic memberIsLabelLabelToken
Public methodStatic memberIsLabelStatementLabelToken
Public methodStatic memberIsLambdaHeader
Public methodStatic memberIsLambdaHeaderKeyword Obsolete.
Public methodStatic memberIsLambdaHeaderSubOrFunctionKeyword
Public methodStatic memberIsLanguagePunctuation
Public methodStatic memberIsLiteralExpression
Public methodStatic memberIsLiteralExpressionToken
Public methodStatic memberIsLoopStatement
Public methodStatic memberIsMemberAccessExpression
Public methodStatic memberIsMemberAccessExpressionOperatorToken
Public methodStatic memberIsMethodBlock
Public methodStatic memberIsMethodStatement
Public methodStatic memberIsMethodStatementKeyword Obsolete.
Public methodStatic memberIsMethodStatementSubOrFunctionKeyword
Public methodStatic memberIsMultiLineLambdaExpression
Public methodStatic memberIsName
Public methodStatic memberIsNamedArgumentName
Is the node the name of a named argument of an invocation or object creation expression, but not an attribute.
Public methodStatic memberIsNamespaceMemberDeclaration
Public methodStatic memberIsNewLine
Determines if the Unicode character is a newline character.
Public methodStatic memberIsOnErrorGoToStatement
Public methodStatic memberIsOperator
Public methodStatic memberIsOperatorStatementOperatorToken
Public methodStatic memberIsOptionStatementNameKeyword
Public methodStatic memberIsOptionStatementValueKeyword
Public methodStatic memberIsOrdering
Public methodStatic memberIsOrderingAscendingOrDescendingKeyword
Public methodStatic memberIsPartitionClause
Public methodStatic memberIsPartitionClauseSkipOrTakeKeyword
Public methodStatic memberIsPartitionWhileClause
Public methodStatic memberIsPartitionWhileClauseSkipOrTakeKeyword
Public methodStatic memberIsPredefinedCastExpressionKeyword
Public methodStatic memberIsPredefinedType
Helper to check whether the token is a predefined type
Public methodStatic memberIsPreprocessorDirective
Public methodStatic memberIsPreprocessorKeyword
Determine if the token instance represents a preprocessor keyword
Public methodStatic memberIsPreprocessorPunctuation
Public methodStatic memberIsPunctuation
Public methodStatic memberIsPunctuationOrKeyword
Public methodStatic memberIsReDimStatement
Public methodStatic memberIsRelationalCaseClause
Public methodStatic memberIsRelationalCaseClauseOperatorToken
Public methodStatic memberIsRelationalOperator
Public methodStatic memberIsReservedKeyword
Determine if the kind represents a reserved keyword
Public methodStatic memberIsResumeStatement
Public methodStatic memberIsSingleLineLambdaExpression
Public methodStatic memberIsSpecialConstraint
Public methodStatic memberIsSpecialConstraintConstraintKeyword
Public methodStatic memberIsStopOrEndStatement
Public methodStatic memberIsStopOrEndStatementStopOrEndKeyword
Public methodStatic memberIsTrivia
Determine if the token instance represents a syntax trivia such as comment, whitespace, etc...
Public methodStatic memberIsTypeOfExpression
Public methodStatic memberIsTypeOfExpressionOperatorToken
Public methodStatic memberIsTypeParameterVarianceKeyword
Public methodStatic memberIsUnaryExpression
Public methodStatic memberIsUnaryExpressionOperatorToken
Public methodStatic memberIsUnderscore
Determines if the unicode character is a underscore character.
Public methodStatic memberIsValidIdentifier
Determines if the name is a valid identifier.
Public methodStatic memberIsWhileOrUntilClause
Public methodStatic memberIsWhileOrUntilClauseWhileOrUntilKeyword
Public methodStatic memberIsWhitespace
Determines if Unicode character represents a whitespace.
Public methodStatic memberIsXmlCrefAttributeEndQuoteToken
Public methodStatic memberIsXmlCrefAttributeStartQuoteToken
Public methodStatic memberIsXmlMemberAccessExpression
Public methodStatic memberIsXmlMemberAccessExpressionToken2
Public methodStatic memberIsXmlNameAttributeEndQuoteToken
Public methodStatic memberIsXmlNameAttributeStartQuoteToken
Public methodStatic memberIsXmlStringEndQuoteToken
Public methodStatic memberIsXmlStringStartQuoteToken
Public methodStatic memberIsXmlTextToken
Public methodStatic memberIsXmlWhitespace
Determines if Unicode character represents a XML whitespace.
Public methodStatic memberMakeHalfWidthIdentifier
Creates a half width form Unicode character string.
Public methodStatic memberVarianceKindFromToken
Top
See Also