/// <summary> /// Returns the full string representation of this node or token including its leading and trailing trivia. /// </summary> /// <returns>The full string representation of this node or token including its leading and trailing /// trivia.</returns> /// <remarks>The length of the returned string is always the same as FullSpan.Length</remarks> public string ToFullString() { if (_token != null) { return(_token.ToFullString()); } if (_nodeOrParent != null) { return(_nodeOrParent.ToFullString()); } return(string.Empty); }
/// <summary> /// Returns the full string representation of this trivia. If this trivia is structured trivia then the returned string will /// include any leading or trailing trivia present on the StructuredTriviaSyntax node of this trivia. /// </summary> /// <returns>The full string representation of this trivia.</returns> /// <remarks>The length of the returned string is always the same as FullSpan.Length</remarks> public string ToFullString() { return(triviaNode != null?triviaNode.ToFullString() : string.Empty); }
/// <summary> /// Returns the full string representation of this token including its leading and trailing trivia. /// </summary> /// <returns>The full string representation of this token including its leading and trailing trivia.</returns> /// <remarks>The length of the returned string is always the same as FullSpan.Length</remarks> public string ToFullString() { return(token != null?token.ToFullString() : string.Empty); }
public string ToFullString() { return(_node != null?_node.ToFullString() : String.Empty); }