/// <summary>Initializes a new instance of the <see cref="T4Token"/> class.</summary> /// <param name="nodeType">The token type.</param> /// <param name="buffer">The buffer holding the token text.</param> /// <param name="startOffset">The token starting offset in <paramref name="buffer"/>.</param> /// <param name="endOffset">The token ending offset in <paramref name="buffer"/>.</param> public T4Token( [NotNull] T4TokenNodeType nodeType, [NotNull] IBuffer buffer, TreeOffset startOffset, TreeOffset endOffset ) : base(nodeType, buffer, startOffset, endOffset) { }
public override ITreeNode CreateNewLine() { T4TokenNodeType nodeType = T4TokenNodeTypes.NewLine; return(nodeType.Create(nodeType.TokenRepresentation)); }
/// <summary> /// Initializes a new instance of the <see cref="T4Token"/> class. /// </summary> /// <param name="nodeType">The token type.</param> /// <param name="buffer">The buffer holding the token text.</param> /// <param name="startOffset">The token starting offset in <paramref name="buffer"/>.</param> /// <param name="endOffset">The token ending offset in <paramref name="buffer"/>.</param> public T4Token(T4TokenNodeType nodeType, IBuffer buffer, TreeOffset startOffset, TreeOffset endOffset) : base(nodeType, buffer, startOffset, endOffset) { }
public override ITreeNode CreateNewLine(LineEnding lineEnding) { T4TokenNodeType nodeType = T4TokenNodeTypes.NewLine; return(nodeType.Create(lineEnding.GetPresentation())); }