8000 Implement context validation on parse by ksss · Pull Request #2336 · ruby/rbs · GitHub
[go: up one dir, main page]

Skip to content

Implement context validation on parse #2336

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Remove RBS::WillSyntaxError
  • Loading branch information
ksss committed May 27, 2025
commit 5e57af5f1bcc3d2564d30adfa4a179f169aa94b0
11 changes: 0 additions & 11 deletions lib/rbs/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -591,17 +591,6 @@ def location
end
end

class WillSyntaxError < DefinitionError
include DetailedMessageable

attr_reader :location

def initialize(message, location:)
super "#{Location.to_string(location)}: #{message}"
@location = location
end
end

class TypeParamDefaultReferenceError < DefinitionError
include DetailedMessageable

Expand Down
8 changes: 0 additions & 8 deletions sig/errors.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,6 @@ module RBS
def location: () -> AST::Declarations::AliasDecl::loc?
end

class WillSyntaxError < BaseError
include RBS::DetailedMessageable

def initialize: (String message, location: Location[untyped, untyped]?) -> void

attr_reader location: Location[untyped, untyped]?
end

class TypeParamDefaultReferenceError < BaseError
include DetailedMessageable

Expand Down
0