This represents a magic comment that was encountered during parsing.

Attributes
Read

A Location object representing the location of the key in the source.

Read

A Location object representing the location of the value in the source.

Class Methods

Create a new magic comment object with the given key and value locations.

Instance Methods

Implement the hash pattern matching interface for MagicComment.

Returns a string representation of this magic comment.

Returns the key of the magic comment by slicing it from the source code.

Returns the value of the magic comment by slicing it from the source code.