File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed
MethodSystem/Methods/TextMethods Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1- using LabApi . Features . Console ;
1+ using System . Diagnostics ;
2+ using System . Text ;
3+ using LabApi . Features . Console ;
24using SER . Code . ScriptSystem ;
35
46namespace SER . Code . Helpers ;
@@ -44,4 +46,18 @@ public static void D(string msg)
4446 Logger . Raw ( msg , ConsoleColor . Cyan ) ;
4547 #endif
4648 }
47- }
49+
50+ public static string GetStackTrace ( )
51+ {
52+ StackTrace stackTrace = new StackTrace ( true ) ;
53+
54+ StringBuilder sb = new ( "" ) ;
55+ foreach ( var stackFrame in stackTrace . GetFrames ( ) ! . Take ( 10 ) )
56+ {
57+ sb . AppendLine ( $ "-> { stackFrame . GetMethod ( ) . Name } ") ;
58+ }
59+
60+ return sb . ToString ( ) ;
61+ }
62+ }
63+
Original file line number Diff line number Diff line change 44using SER . Code . Helpers . Exceptions ;
55using SER . Code . MethodSystem . BaseMethods . Synchronous ;
66using SER . Code . MethodSystem . MethodDescriptors ;
7- using SER . Code . ScriptSystem ;
87using SER . Code . ValueSystem ;
98using SER . Code . VariableSystem . Variables ;
109
Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ public override bool CanContinueAfterAdd(char c)
5151 if ( c == '`' )
5252 {
5353 _ignoreNext = true ;
54+
55+ // this is such a fucking hack
56+ if ( Type is not CollectionBrackets . Quotes )
57+ {
58+ _value . Append ( c ) ;
59+ }
60+
5461 return true ;
5562 }
5663
You can’t perform that action at this time.
0 commit comments