File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
MethodSystem/Methods/GeneralVariableMethods Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22using SER . ArgumentSystem . BaseArguments ;
33using SER . Helpers . Exceptions ;
44using SER . MethodSystem . BaseMethods ;
5+ using SER . MethodSystem . MethodDescriptors ;
56using SER . TokenSystem . Tokens . VariableTokens ;
67using SER . VariableSystem ;
78
89namespace SER . MethodSystem . Methods . GeneralVariableMethods ;
910
10- public class GlobalVariableMethod : SynchronousMethod
11+ public class GlobalVariableMethod : SynchronousMethod , ICanError
1112{
1213 public override string Description => "Makes a provided local variable into a global variable." ;
1314
15+ public string [ ] ErrorReasons =>
16+ [
17+ "Provided variable does not exist."
18+ ] ;
19+
1420 public override Argument [ ] ExpectedArguments { get ; } =
1521 [
1622 new TokenArgument < VariableToken > ( "variable to make global" )
1723 ] ;
18-
24+
1925 public override void Execute ( )
2026 {
2127 var variableToken = Args . GetToken < VariableToken > ( "variable to make global" ) ;
You can’t perform that action at this time.
0 commit comments