Response class for URI Too Long
responses (status code 414).
The URI
provided was too long for the server to process.
References:
Response class for Unsupported Media Type
responses (status code 415).
The request entity has a media type which the server or resource does not support.
References:
Response class for Expectation Failed
responses (status code 417).
The server cannot meet the requirements of the Expect request-header field.
References:
Response class for Variant Also Negotiates
responses (status code 506).
Transparent content negotiation for the request results in a circular reference.
References:
Map from option/keyword string to object with completion.
Simple option list providing mapping from short and/or long option string to OptionParser::Switch
and mapping from acceptable argument to matching pattern and converter pair. Also provides summary feature.
Hash
with completion search feature. See OptionParser::Completion
.
Raises when ambiguously completable string is encountered.
Raises when switch is undefined.
DesugarCompiler
is a compiler that desugars Ruby
code into a more primitive form. This is useful for consumers that want to deal with fewer node types.
Here we are going to patch StringQuery
to put in the class-level methods so that it can maintain a consistent interface
Query methods that allow categorizing strings based on their context for where they could be valid in a Ruby
syntax tree.
A cache that can be used to quickly compute code unit offsets from byte offsets. It purposefully provides only a single []
method to access the cache in order to minimize surface area.
Note that there are some known issues here that may or may not be addressed in the future:
The first is that there are issues when the cache computes values that are not on character boundaries. This can result in subsequent computations being off by one or more code units.
The second is that this cache is currently unbounded. In theory we could introduce some kind of LRU cache to limit the number of entries, but this has not yet been implemented.
This represents a location in the source.
This represents a comment that was encountered during parsing. It is the base class for all comment types.
InlineComment
objects are the most common. They correspond to comments in the source file like this one that start with #.