rubybreaker 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/NEWS +6 -46
- data/README.md +30 -19
- data/TODO +22 -20
- data/VERSION +1 -1
- data/bin/rubybreaker +11 -2
- data/lib/rubybreaker.rb +31 -11
- data/lib/rubybreaker/debug.rb +5 -49
- data/lib/rubybreaker/{context.rb → debug/context.rb} +0 -0
- data/lib/rubybreaker/debug/debug.rb +61 -0
- data/lib/rubybreaker/{error.rb → debug/error.rb} +1 -1
- data/lib/rubybreaker/runtime.rb +3 -2
- data/lib/rubybreaker/runtime/inspector.rb +20 -13
- data/lib/rubybreaker/runtime/monitor.rb +21 -13
- data/lib/rubybreaker/runtime/object_wrapper.rb +3 -1
- data/lib/rubybreaker/runtime/type_system.rb +3 -2
- data/lib/rubybreaker/test/testcase.rb +0 -1
- data/lib/rubybreaker/type/type.rb +1 -1
- data/lib/rubybreaker/type/type_grammar.treetop +1 -1
- data/lib/rubybreaker/type/type_unparser.rb +1 -1
- data/lib/rubybreaker/util.rb +3 -11
- data/test/integrated/tc_both_broken_breakable.rb +27 -0
- data/test/ts_integrated.rb +1 -0
- data/webpage/index.html +30 -19
- data/webpage/rdoc/RubyBreaker.html +127 -10
- data/webpage/rdoc/RubyBreaker/Breakable.html +1 -5
- data/webpage/rdoc/RubyBreaker/Broken.html +2 -6
- data/webpage/rdoc/RubyBreaker/Broken/BrokenEigen.html +3 -6
- data/webpage/rdoc/RubyBreaker/Context.html +6 -10
- data/webpage/rdoc/RubyBreaker/Errors.html +2 -6
- data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +2 -6
- data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +2 -6
- data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/UserError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Main.html +33 -20
- data/webpage/rdoc/RubyBreaker/ObjectPosition.html +4 -8
- data/webpage/rdoc/RubyBreaker/Position.html +7 -11
- data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +1 -5
- data/webpage/rdoc/RubyBreaker/Runtime.html +1 -5
- data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +25 -18
- data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +1 -5
- data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +4 -8
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +20 -43
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +7 -11
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +6 -10
- data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +7 -11
- data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +1 -5
- data/webpage/rdoc/RubyBreaker/Runtime/TypePlaceholder.html +1 -5
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +1 -5
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +8 -12
- data/webpage/rdoc/RubyBreaker/TestCase.html +1 -6
- data/webpage/rdoc/RubyBreaker/TypeComparer.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +1 -5
- data/webpage/rdoc/RubyBreaker/TypeUnparser.html +1 -5
- data/webpage/rdoc/RubyBreaker/Typing.html +1 -5
- data/webpage/rdoc/RubyBreaker/{Utilities.html → Util.html} +8 -9
- data/webpage/rdoc/created.rid +15 -14
- data/webpage/rdoc/index.html +1 -5
- data/webpage/rdoc/js/search_index.js +1 -1
- data/webpage/rdoc/table_of_contents.html +22 -36
- metadata +9 -7
- data/webpage/rdoc/RubyBreaker/Debug.html +0 -411
- data/webpage/rdoc/RubyBreaker/Kernel.html +0 -259
@@ -88,8 +88,6 @@
|
|
88
88
|
|
89
89
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
90
90
|
|
91
|
-
<li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
92
|
-
|
93
91
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
94
92
|
|
95
93
|
<li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -104,8 +102,6 @@
|
|
104
102
|
|
105
103
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
106
104
|
|
107
|
-
<li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
108
|
-
|
109
105
|
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
110
106
|
|
111
107
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -174,7 +170,7 @@
|
|
174
170
|
|
175
171
|
<li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
176
172
|
|
177
|
-
<li><a href="../RubyBreaker/
|
173
|
+
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
178
174
|
|
179
175
|
</ul>
|
180
176
|
</nav>
|
@@ -104,8 +104,6 @@
|
|
104
104
|
|
105
105
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
106
106
|
|
107
|
-
<li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
108
|
-
|
109
107
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
110
108
|
|
111
109
|
<li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -120,8 +118,6 @@
|
|
120
118
|
|
121
119
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
122
120
|
|
123
|
-
<li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
124
|
-
|
125
121
|
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
126
122
|
|
127
123
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -190,7 +186,7 @@
|
|
190
186
|
|
191
187
|
<li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
192
188
|
|
193
|
-
<li><a href="../RubyBreaker/
|
189
|
+
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
194
190
|
|
195
191
|
</ul>
|
196
192
|
</nav>
|
@@ -259,7 +255,7 @@ class methods too.</p>
|
|
259
255
|
|
260
256
|
|
261
257
|
<div class="method-source-code" id="included-source">
|
262
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line
|
258
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 105</span>
|
263
259
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">mod</span>)
|
264
260
|
|
265
261
|
<span class="ruby-comment"># Add to the list of broken modules</span>
|
@@ -104,8 +104,6 @@
|
|
104
104
|
|
105
105
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
106
106
|
|
107
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
108
|
-
|
109
107
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
110
108
|
|
111
109
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -120,8 +118,6 @@
|
|
120
118
|
|
121
119
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
122
120
|
|
123
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
124
|
-
|
125
121
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
126
122
|
|
127
123
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -190,7 +186,7 @@
|
|
190
186
|
|
191
187
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
192
188
|
|
193
|
-
<li><a href="../../RubyBreaker/
|
189
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
194
190
|
|
195
191
|
</ul>
|
196
192
|
</nav>
|
@@ -271,7 +267,8 @@ the type of a method.</p>
|
|
271
267
|
<span class="ruby-identifier">meth_type</span>.<span class="ruby-identifier">types</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">t</span>
|
272
268
|
<span class="ruby-keyword">else</span>
|
273
269
|
<span class="ruby-comment"># then upgrade it</span>
|
274
|
-
<span class="ruby-identifier">placeholder</span>.<span class="ruby-identifier">meth_type_map</span>[<span class="ruby-identifier">t</span>.<span class="ruby-identifier">meth_name</span>] =
|
270
|
+
<span class="ruby-identifier">placeholder</span>.<span class="ruby-identifier">meth_type_map</span>[<span class="ruby-identifier">t</span>.<span class="ruby-identifier">meth_name</span>] =
|
271
|
+
<span class="ruby-constant">MethodListType</span>.<span class="ruby-identifier">new</span>([<span class="ruby-identifier">meth_type</span>, <span class="ruby-identifier">t</span>])
|
275
272
|
<span class="ruby-keyword">end</span>
|
276
273
|
<span class="ruby-keyword">else</span>
|
277
274
|
<span class="ruby-identifier">placeholder</span>.<span class="ruby-identifier">meth_type_map</span>[<span class="ruby-identifier">t</span>.<span class="ruby-identifier">meth_name</span>] = <span class="ruby-identifier">t</span>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/context.rb
|
50
|
+
<li>lib/rubybreaker/debug/context.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -100,8 +100,6 @@
|
|
100
100
|
|
101
101
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
102
102
|
|
103
|
-
<li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
104
|
-
|
105
103
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
106
104
|
|
107
105
|
<li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -116,8 +114,6 @@
|
|
116
114
|
|
117
115
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
118
116
|
|
119
|
-
<li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
120
|
-
|
121
117
|
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
122
118
|
|
123
119
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -186,7 +182,7 @@
|
|
186
182
|
|
187
183
|
<li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
188
184
|
|
189
|
-
<li><a href="../RubyBreaker/
|
185
|
+
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
190
186
|
|
191
187
|
</ul>
|
192
188
|
</nav>
|
@@ -273,7 +269,7 @@ of positions for types.</p>
|
|
273
269
|
|
274
270
|
|
275
271
|
<div class="method-source-code" id="new-source">
|
276
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 81</span>
|
272
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/context.rb, line 81</span>
|
277
273
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">pos</span>)
|
278
274
|
<span class="ruby-ivar">@pos</span> = <span class="ruby-identifier">pos</span>
|
279
275
|
<span class="ruby-ivar">@child</span> = <span class="ruby-keyword">nil</span>
|
@@ -310,7 +306,7 @@ of positions for types.</p>
|
|
310
306
|
|
311
307
|
|
312
308
|
<div class="method-source-code" id="format_with_msg-source">
|
313
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 104</span>
|
309
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/context.rb, line 104</span>
|
314
310
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">format_with_msg</span>(<span class="ruby-identifier">pp</span>,<span class="ruby-identifier">msg</span>=<span class="ruby-string">""</span>)
|
315
311
|
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-ivar">@pos</span>.<span class="ruby-identifier">to_s</span>)
|
316
312
|
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
@@ -352,7 +348,7 @@ of positions for types.</p>
|
|
352
348
|
|
353
349
|
|
354
350
|
<div class="method-source-code" id="pop-source">
|
355
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 94</span>
|
351
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/context.rb, line 94</span>
|
356
352
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pop</span>
|
357
353
|
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@child</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@child</span>.<span class="ruby-identifier">child</span>
|
358
354
|
<span class="ruby-ivar">@child</span>.<span class="ruby-identifier">pop</span>
|
@@ -388,7 +384,7 @@ of positions for types.</p>
|
|
388
384
|
|
389
385
|
|
390
386
|
<div class="method-source-code" id="push-source">
|
391
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 86</span>
|
387
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/context.rb, line 86</span>
|
392
388
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">pos</span>)
|
393
389
|
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@child</span>
|
394
390
|
<span class="ruby-ivar">@child</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">pos</span>)
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -78,8 +78,6 @@
|
|
78
78
|
|
79
79
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
80
80
|
|
81
|
-
<li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
82
|
-
|
83
81
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
84
82
|
|
85
83
|
<li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -94,8 +92,6 @@
|
|
94
92
|
|
95
93
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
96
94
|
|
97
|
-
<li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
98
|
-
|
99
95
|
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
100
96
|
|
101
97
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -164,7 +160,7 @@
|
|
164
160
|
|
165
161
|
<li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
166
162
|
|
167
|
-
<li><a href="../RubyBreaker/
|
163
|
+
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
168
164
|
|
169
165
|
</ul>
|
170
166
|
</nav>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -94,8 +94,6 @@
|
|
94
94
|
|
95
95
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
96
96
|
|
97
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
98
|
-
|
99
97
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
100
98
|
|
101
99
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -110,8 +108,6 @@
|
|
110
108
|
|
111
109
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
112
110
|
|
113
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
114
|
-
|
115
111
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
116
112
|
|
117
113
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -180,7 +176,7 @@
|
|
180
176
|
|
181
177
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
182
178
|
|
183
|
-
<li><a href="../../RubyBreaker/
|
179
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
184
180
|
|
185
181
|
</ul>
|
186
182
|
</nav>
|
@@ -232,7 +228,7 @@ inform the faults within the program and not related to user programs.</p>
|
|
232
228
|
|
233
229
|
|
234
230
|
<div class="method-source-code" id="new-source">
|
235
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/error.rb, line 15</span>
|
231
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/error.rb, line 15</span>
|
236
232
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msg</span>)
|
237
233
|
<span class="ruby-ivar">@level</span> = <span class="ruby-value">:FATAL</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@level</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
|
238
234
|
<span class="ruby-identifier">msg</span> = <span class="ruby-node">"[#{@level}] #{msg} at #{@pos}"</span>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -94,8 +94,6 @@
|
|
94
94
|
|
95
95
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
96
96
|
|
97
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
98
|
-
|
99
97
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
100
98
|
|
101
99
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -110,8 +108,6 @@
|
|
110
108
|
|
111
109
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
112
110
|
|
113
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
114
|
-
|
115
111
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
116
112
|
|
117
113
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -180,7 +176,7 @@
|
|
180
176
|
|
181
177
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
182
178
|
|
183
|
-
<li><a href="../../RubyBreaker/
|
179
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
184
180
|
|
185
181
|
</ul>
|
186
182
|
</nav>
|
@@ -232,7 +228,7 @@ given types. It should NOT BE USED for any check failures.</p>
|
|
232
228
|
|
233
229
|
|
234
230
|
<div class="method-source-code" id="new-source">
|
235
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/error.rb, line 29</span>
|
231
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/error.rb, line 29</span>
|
236
232
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msg</span>,<span class="ruby-identifier">pos</span>=<span class="ruby-keyword">nil</span>)
|
237
233
|
<span class="ruby-ivar">@level</span> = <span class="ruby-value">:FATAL</span>
|
238
234
|
<span class="ruby-ivar">@pos</span> = <span class="ruby-identifier">pos</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">pos</span> <span class="ruby-operator">:</span> <span class="ruby-constant">Position</span>.<span class="ruby-identifier">convert_caller_to_pos</span>(<span class="ruby-identifier">caller</span>(<span class="ruby-value">1</span>))
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -84,8 +84,6 @@
|
|
84
84
|
|
85
85
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
86
86
|
|
87
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
88
|
-
|
89
87
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
90
88
|
|
91
89
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -100,8 +98,6 @@
|
|
100
98
|
|
101
99
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
102
100
|
|
103
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
104
|
-
|
105
101
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
106
102
|
|
107
103
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -170,7 +166,7 @@
|
|
170
166
|
|
171
167
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
172
168
|
|
173
|
-
<li><a href="../../RubyBreaker/
|
169
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
174
170
|
|
175
171
|
</ul>
|
176
172
|
</nav>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -84,8 +84,6 @@
|
|
84
84
|
|
85
85
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
86
86
|
|
87
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
88
|
-
|
89
87
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
90
88
|
|
91
89
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -100,8 +98,6 @@
|
|
100
98
|
|
101
99
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
102
100
|
|
103
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
104
|
-
|
105
101
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
106
102
|
|
107
103
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -170,7 +166,7 @@
|
|
170
166
|
|
171
167
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
172
168
|
|
173
|
-
<li><a href="../../RubyBreaker/
|
169
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
174
170
|
|
175
171
|
</ul>
|
176
172
|
</nav>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
60
60
|
<h3 class="section-header">Parent</h3>
|
61
61
|
|
62
|
-
<p class="link">UserError
|
62
|
+
<p class="link"><a href="UserError.html">RubyBreaker::Errors::UserError</a>
|
63
63
|
|
64
64
|
</nav>
|
65
65
|
|
@@ -84,8 +84,6 @@
|
|
84
84
|
|
85
85
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
86
86
|
|
87
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
88
|
-
|
89
87
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
90
88
|
|
91
89
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -100,8 +98,6 @@
|
|
100
98
|
|
101
99
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
102
100
|
|
103
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
104
|
-
|
105
101
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
106
102
|
|
107
103
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -170,7 +166,7 @@
|
|
170
166
|
|
171
167
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
172
168
|
|
173
|
-
<li><a href="../../RubyBreaker/
|
169
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
174
170
|
|
175
171
|
</ul>
|
176
172
|
</nav>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<nav id="file-list-section" class="section">
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
49
49
|
<ul>
|
50
|
-
<li>lib/rubybreaker/error.rb
|
50
|
+
<li>lib/rubybreaker/debug/error.rb
|
51
51
|
</ul>
|
52
52
|
</nav>
|
53
53
|
|
@@ -94,8 +94,6 @@
|
|
94
94
|
|
95
95
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
96
96
|
|
97
|
-
<li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
|
98
|
-
|
99
97
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
100
98
|
|
101
99
|
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
@@ -110,8 +108,6 @@
|
|
110
108
|
|
111
109
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
112
110
|
|
113
|
-
<li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
|
114
|
-
|
115
111
|
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
116
112
|
|
117
113
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
@@ -180,7 +176,7 @@
|
|
180
176
|
|
181
177
|
<li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
182
178
|
|
183
|
-
<li><a href="../../RubyBreaker/
|
179
|
+
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
184
180
|
|
185
181
|
</ul>
|
186
182
|
</nav>
|
@@ -234,7 +230,7 @@ errors tend to generate over multiple points in the program.</p>
|
|
234
230
|
|
235
231
|
|
236
232
|
<div class="method-source-code" id="new-source">
|
237
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/error.rb, line 44</span>
|
233
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/debug/error.rb, line 44</span>
|
238
234
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">ctx</span>)
|
239
235
|
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">msg</span>)
|
240
236
|
<span class="ruby-ivar">@ctx</span> = <span class="ruby-identifier">ctx</span>
|