/// <summary> /// Adds this annotation to a given syntax token, creating a new syntax token of the same type with the /// annotation on it. /// </summary> public SyntaxToken WithAdditionalAnnotations(IEnumerable <SyntaxAnnotation> annotations) { if (annotations == null) { throw new ArgumentNullException("annotations"); } if (this.Node != null) { return(new SyntaxToken( parent: null, token: _token.WithAdditionalAnnotationsGreen(annotations), position: 0, index: 0)); } return(default(SyntaxToken)); }