Skip to content

Commit

Permalink
Add some :nodoc: to SyntaxErrorProxy and friends
Browse files Browse the repository at this point in the history
None of this is public API.
  • Loading branch information
byroot committed Aug 24, 2023
1 parent 8b095c8 commit 6beb15c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -241,7 +241,7 @@ def exception_id
end

private
class SourceMapLocation < DelegateClass(Thread::Backtrace::Location)
class SourceMapLocation < DelegateClass(Thread::Backtrace::Location) # :nodoc:
def initialize(location, template)
super(location)
@template = template
Expand Down
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class Thread::Backtrace::Location
class Thread::Backtrace::Location # :nodoc:
if defined?(ErrorHighlight) && Gem::Version.new(ErrorHighlight::VERSION) >= Gem::Version.new("0.4.0")
def spot(ex)
ErrorHighlight.spot(ex, backtrace_location: self)
Expand Down
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/syntax_error_proxy.rb
Expand Up @@ -12,15 +12,15 @@ def backtrace
parse_message_for_trace + super
end

class BacktraceLocation < Struct.new(:path, :lineno, :to_s)
class BacktraceLocation < Struct.new(:path, :lineno, :to_s) # :nodoc:
def spot(_)
end

def label
end
end

class BacktraceLocationProxy < DelegateClass(Thread::Backtrace::Location)
class BacktraceLocationProxy < DelegateClass(Thread::Backtrace::Location) # :nodoc:
def initialize(loc, ex)
super(loc)
@ex = ex
Expand Down

0 comments on commit 6beb15c

Please sign in to comment.