Class WhitespaceToken
Represents a whitespace that separates tokens.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.Syntax.Tokens
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public class WhitespaceToken : SyntaxTokenDefinition
Remarks
Whitespaces are not actually tokens, but they are still included there as the tokenizer needs to preserve them when separating tokens so later we could produce SyntaxNode instances with Leading/TrailingWhitespace properties set.
Constructors
WhitespaceToken()
Declaration
public WhitespaceToken()
Methods
HasContinuation(String, TokenReader)
Gets a value indicating whether the current position of the TokenReader contains a sequence of characters valid as a continuation of the specified token
Declaration
public override bool HasContinuation(string prevPart, TokenReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.String | prevPart | A part of token previously read from a token reader |
TokenReader | reader | A token reader to test |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
HasStart(TokenReader)
Gets a value indicating whether the current position of the TokenReader contains a sequence of characters valid as the token start
Declaration
public override bool HasStart(TokenReader reader)
Parameters
Type | Name | Description |
---|---|---|
TokenReader | reader | A token reader to test |
Returns
Type | Description |
---|---|
System.Boolean |