File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,17 +182,6 @@ return function(META)
182182 self :Error (type_errors .plain_error (msg ))
183183 end
184184
185- function META :GetThrownErrorMessage ()
186- return self .lua_error_thrown or
187- self .lua_assert_error_thrown and
188- self .lua_assert_error_thrown .msg
189- end
190-
191- function META :ClearError ()
192- self .lua_error_thrown = nil
193- self .lua_assert_error_thrown = nil
194- end
195-
196185 function META :Return (node , types )
197186 local scope = self :GetScope ()
198187 local function_scope = scope :GetNearestFunctionScope ()
@@ -355,10 +344,6 @@ return function(META)
355344 return true
356345 end
357346
358- function META :UncertainReturn ()
359- self .call_stack [1 ].scope :UncertainReturn ()
360- end
361-
362347 function META :Print (...)
363348 local node = self .current_expression
364349 local start , stop = node :GetStartStop ()
Original file line number Diff line number Diff line change @@ -71,19 +71,11 @@ function META:GetPosition()
7171 return self .Position
7272end
7373
74- function META :TheEnd ()--[[ #: boolean]]
75- return self .Position > self :GetLength ()
76- end
77-
7874function META :IsString (str --[[ #: string]] , offset --[[ #: number | nil]] )--[[ #: boolean]]
7975 offset = offset or 0
8076 return self .Code :IsStringSlice (self .Position + offset , self .Position + offset + # str - 1 , str )
8177end
8278
83- function META :IsStringLower (str --[[ #: string]] )--[[ #: boolean]]
84- return self .Code :GetStringSlice (self .Position , self .Position + # str - 1 ):lower () == str
85- end
86-
8779function META :OnError (
8880 code --[[ #: Code]] ,
8981 msg --[[ #: string]] ,
You can’t perform that action at this time.
0 commit comments