D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Prism
/
Translation
/
Parser
/
Lexer
/
Filename :
cdesc-Lexer.ri
back
Copy
U:RDoc::NormalClass[iI" Lexer:ETI"&Prism::Translation::Parser::Lexer;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"HAccepts a list of prism tokens and converts them into the expected ;TI"format for the parser gem.;T: @fileI"*lib/prism/translation/parser/lexer.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[ I" lexed;TI"R;T:publicFI"*lib/prism/translation/parser/lexer.rb;T[ I"offset_cache;T@;F@[ I"source_buffer;T@;F@[U:RDoc::Constant[i I" TYPES;TI"-Prism::Translation::Parser::Lexer::TYPES;T:private0o;;[o; ;[I"<The direct translating of types between the two lexers.;T; @;0@@cRDoc::NormalClass0U; [i I"LAMBDA_TOKEN_TYPES;TI":Prism::Translation::Parser::Lexer::LAMBDA_TOKEN_TYPES;T;0o;;[o; ;[I"UIt is used to determine whether `do` is of the token type `kDO` or `kDO_LAMBDA`.;To:RDoc::Markup::BlankLine o; ;[I"hNOTE: In edge cases like `-> (foo = -> (bar) {}) do end`, please note that `kDO` is still returned ;TI"Xinstead of `kDO_LAMBDA`, which is expected: https://github.com/ruby/prism/pull/3046;T; @;0@@@&0U; [i I""LPAREN_CONVERSION_TOKEN_TYPES;TI"EPrism::Translation::Parser::Lexer::LPAREN_CONVERSION_TOKEN_TYPES;T;0o;;[o; ;[I"nThe `PARENTHESIS_LEFT` token in Prism is classified as either `tLPAREN` or `tLPAREN2` in the Parser gem. ;TI"KThe following token types are listed as those classified as `tLPAREN`.;T; @;0@@@&0[ [[I" class;T[[;[[I"new;T@[:protected[ [;[ [I" instance;T[[;[[I" to_a;T@[;[ [;[ [I"parse_complex;T@[I"parse_float;T@[I"parse_integer;T@[I"parse_rational;T@[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@I"Prism::Translation::Parser;T@&