-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from ydah/use-rbs-inline
Replace with rbs-inline style type definition in lexer directory
- Loading branch information
Showing
19 changed files
with
185 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# rbs_inline: enabled | ||
# frozen_string_literal: true | ||
|
||
module Lrama | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# rbs_inline: enabled | ||
# frozen_string_literal: true | ||
|
||
module Lrama | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated from lib/lrama/lexer/grammar_file.rb with RBS::Inline | ||
|
||
module Lrama | ||
class Lexer | ||
class GrammarFile | ||
class Text < String | ||
# @rbs () -> String | ||
def inspect: () -> String | ||
end | ||
|
||
attr_reader path: String | ||
|
||
attr_reader text: String | ||
|
||
# @rbs (String path, String text) -> void | ||
def initialize: (String path, String text) -> void | ||
|
||
# @rbs () -> String | ||
def inspect: () -> String | ||
|
||
# @rbs (GrammarFile other) -> bool | ||
def ==: (GrammarFile other) -> bool | ||
|
||
# @rbs () -> Array[String] | ||
def lines: () -> Array[String] | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Generated from lib/lrama/lexer/location.rb with RBS::Inline | ||
|
||
module Lrama | ||
class Lexer | ||
class Location | ||
attr_reader grammar_file: GrammarFile | ||
|
||
attr_reader first_line: Integer | ||
|
||
attr_reader first_column: Integer | ||
|
||
attr_reader last_line: Integer | ||
|
||
attr_reader last_column: Integer | ||
|
||
# @rbs (grammar_file: GrammarFile, first_line: Integer, first_column: Integer, last_line: Integer, last_column: Integer) -> void | ||
def initialize: (grammar_file: GrammarFile, first_line: Integer, first_column: Integer, last_line: Integer, last_column: Integer) -> void | ||
|
||
# @rbs (Location other) -> bool | ||
def ==: (Location other) -> bool | ||
|
||
# @rbs (Integer left, Integer right) -> Location | ||
def partial_location: (Integer left, Integer right) -> Location | ||
|
||
# @rbs () -> String | ||
def to_s: () -> String | ||
|
||
# @rbs (String error_message) -> String | ||
def generate_error_message: (String error_message) -> String | ||
|
||
# @rbs () -> String | ||
def line_with_carets: () -> String | ||
|
||
private | ||
|
||
# @rbs () -> String | ||
def path: () -> String | ||
|
||
# @rbs () -> String | ||
def blanks: () -> String | ||
|
||
# @rbs () -> String | ||
def carets: () -> String | ||
|
||
# @rbs () -> String | ||
def text: () -> String | ||
|
||
# @rbs () -> Array[String] | ||
def _text: () -> Array[String] | ||
end | ||
end | ||
end |
Oops, something went wrong.