Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix argument type of find_symbol_by_s_value and find_symbol_by_s_value! #486

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sig/lrama/grammar.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module Lrama
def symbols: () -> Array[Grammar::Symbol]
def terms: () -> Array[Grammar::Symbol]
def nterms: () -> Array[Grammar::Symbol]
def find_symbol_by_s_value!: (Grammar::Symbol s_value) -> Grammar::Symbol
def find_symbol_by_s_value!: (::String s_value) -> Grammar::Symbol
end
end
end
6 changes: 3 additions & 3 deletions sig/lrama/grammar/symbols/resolver.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ module Lrama
def sort_by_number!: () -> Array[Grammar::Symbol]
def add_term: (id: Lexer::Token, ?alias_name: String?, ?tag: Lexer::Token::Tag?, ?token_id: Integer?, ?replace: bool) -> Grammar::Symbol
def add_nterm: (id: Lexer::Token, ?alias_name: String?, ?tag: Lexer::Token::Tag?) -> Grammar::Symbol
def find_symbol_by_s_value: (Grammar::Symbol s_value) -> Grammar::Symbol?
def find_symbol_by_s_value!: (Grammar::Symbol s_value) -> Grammar::Symbol
def find_symbol_by_s_value: (::String s_value) -> Grammar::Symbol?
def find_symbol_by_s_value!: (::String s_value) -> Grammar::Symbol
def find_symbol_by_id: (Lexer::Token id) -> Grammar::Symbol?
def find_symbol_by_id!: (Lexer::Token id) -> Grammar::Symbol
def find_symbol_by_token_id: (Integer token_id) -> Grammar::Symbol?
Expand Down Expand Up @@ -47,7 +47,7 @@ module Lrama
def find_symbol_by_number!: (Integer number) -> Grammar::Symbol
def find_symbol_by_id!: (Lexer::Token id) -> Grammar::Symbol
def token_to_symbol: (Lexer::Token token) -> Grammar::Symbol
def find_symbol_by_s_value!: (Grammar::Symbol s_value) -> Grammar::Symbol
def find_symbol_by_s_value!: (::String s_value) -> Grammar::Symbol
def fill_nterm_type: (Array[Grammar::Type] types) -> void
def fill_symbol_number: () -> void
def fill_printer: (Array[Grammar::Printer] printers) -> void
Expand Down
Loading