Skip to content

Commit a6f8624

Browse files
authored
Merge pull request rails#49024 from byroot/nodoc-source-map
Add some :nodoc: to SyntaxErrorProxy and friends
2 parents 8b095c8 + 6beb15c commit a6f8624

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

actionpack/lib/action_dispatch/middleware/exception_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def exception_id
241241
end
242242

243243
private
244-
class SourceMapLocation < DelegateClass(Thread::Backtrace::Location)
244+
class SourceMapLocation < DelegateClass(Thread::Backtrace::Location) # :nodoc:
245245
def initialize(location, template)
246246
super(location)
247247
@template = template

activesupport/lib/active_support/core_ext/thread/backtrace/location.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
class Thread::Backtrace::Location
3+
class Thread::Backtrace::Location # :nodoc:
44
if defined?(ErrorHighlight) && Gem::Version.new(ErrorHighlight::VERSION) >= Gem::Version.new("0.4.0")
55
def spot(ex)
66
ErrorHighlight.spot(ex, backtrace_location: self)

activesupport/lib/active_support/syntax_error_proxy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ def backtrace
1212
parse_message_for_trace + super
1313
end
1414

15-
class BacktraceLocation < Struct.new(:path, :lineno, :to_s)
15+
class BacktraceLocation < Struct.new(:path, :lineno, :to_s) # :nodoc:
1616
def spot(_)
1717
end
1818

1919
def label
2020
end
2121
end
2222

23-
class BacktraceLocationProxy < DelegateClass(Thread::Backtrace::Location)
23+
class BacktraceLocationProxy < DelegateClass(Thread::Backtrace::Location) # :nodoc:
2424
def initialize(loc, ex)
2525
super(loc)
2626
@ex = ex

0 commit comments

Comments
 (0)