Skip to content

Commit

Permalink
Fix argument type of find_symbol_by_s_value and `find_symbol_by_s_v…
Browse files Browse the repository at this point in the history
…alue!`
  • Loading branch information
yui-knk committed Dec 22, 2024
1 parent 84eb007 commit cb9f509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit cb9f509

Please sign in to comment.