/// <summary> /// Determines if this node or token has the specific annotation. /// </summary> public bool HasAnnotation(SyntaxAnnotation annotation) { if (_token != null) { return(_token.HasAnnotation(annotation)); } if (_nodeOrParent != null) { return(_nodeOrParent.HasAnnotation(annotation)); } return(false); }
/// <summary> /// True if this token has the specified annotation. /// </summary> public bool HasAnnotation(SyntaxAnnotation annotation) { return(token != null && token.HasAnnotation(annotation)); }
/// <summary> /// Determines whether this trivia has the specific annotation. /// </summary> public bool HasAnnotation(SyntaxAnnotation annotation) { return(triviaNode != null && triviaNode.HasAnnotation(annotation)); }