/// <summary> /// Determines whether this node or token has annotations of the specified kind. /// </summary> public bool HasAnnotations(string annotationKind) { if (_token != null) { return(_token.HasAnnotations(annotationKind)); } if (_nodeOrParent != null) { return(_nodeOrParent.HasAnnotations(annotationKind)); } return(false); }
/// <summary> /// True if this token has annotations of the specified annotation kind. /// </summary> public bool HasAnnotations(string annotationKind) { return(token != null && token.HasAnnotations(annotationKind)); }
/// <summary> /// Determines where this trivia has annotations of the specified annotation kind. /// </summary> public bool HasAnnotations(string annotationKind) { return(triviaNode != null && triviaNode.HasAnnotations(annotationKind)); }