/// <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);
        }
示例#2
0
 /// <summary>
 /// True if this token has annotations of the specified annotation kind.
 /// </summary>
 public bool HasAnnotations(string annotationKind)
 {
     return(token != null && token.HasAnnotations(annotationKind));
 }
示例#3
0
 /// <summary>
 /// Determines where this trivia has annotations of the specified annotation kind.
 /// </summary>
 public bool HasAnnotations(string annotationKind)
 {
     return(triviaNode != null && triviaNode.HasAnnotations(annotationKind));
 }