function isInlineComment( comment ) {
		var hasPreceding;
		var previous;
		var next;

		previous = source.getTokenBefore( comment, OPTS );
		if ( previous ) {
			hasPreceding = comment.loc.start.line === previous.loc.end.line;
		} else {
			hasPreceding = false;
		}
		next = source.getTokenAfter( comment, OPTS );
		if ( comment.type === 'Line' ) {
			return hasPreceding;
		}
		return (
			next &&
			hasPreceding &&
			comment.loc.end.line === next.loc.start.line
		);
	}
Checks whether a comment is an inline block comment or a trailing line comment.

## Notes

-   A comment is regarded as an inline block comment if it is preceded by a token on the same line and followed by a token on the same line.
-   A comment is a trailing line comment if it starts with `//` and has a preceding token on the same line

@private
@param {ASTNode} comment - comment node
@returns {boolean} boolean indicating whether a comment is an inline block comment or trailing line comment