public void markAnnotation ( String annotation , int lineno , int charno ) { JSDocInfo . Marker marker = currentInfo . addMarker ( ) ; if ( marker != null ) { JSDocInfo . TrimmedStringPosition position = new JSDocInfo . TrimmedStringPosition ( ) ; position . setItem ( annotation ) ; position . setPositionInformation ( lineno , charno , lineno , charno + annotation . length ( ) ) ; marker . setAnnotation ( position ) ; populated = true ; } currentMarker = marker ; }
Adds a marker to the current JSDocInfo and populates the marker with the annotation information .