File tree Expand file tree Collapse file tree
Code/ArgumentSystem/Arguments Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using JetBrains . Annotations ;
22using SER . Code . ArgumentSystem . BaseArguments ;
33using SER . Code . Extensions ;
4+ using SER . Code . Helpers ;
45using SER . Code . Helpers . ResultSystem ;
56using SER . Code . TokenSystem . Tokens ;
67using SER . Code . TokenSystem . Tokens . Interfaces ;
78using SER . Code . TokenSystem . Tokens . ValueTokens ;
89using SER . Code . ValueSystem ;
10+ using ZstdSharp . Unsafe ;
911
1012namespace SER . Code . ArgumentSystem . Arguments ;
1113
@@ -32,10 +34,10 @@ public DynamicTryGet<string> GetConvertSolution(BaseToken token)
3234
3335 return DynamicTryGet . Error ( "Value cannot represent text." ) ;
3436 }
35-
37+
3638 if ( valToken . IsConstant )
3739 {
38- return SpaceCheck ( get ( ) . OnSuccess ( v => v . StringRep ) ) ;
40+ return get ( ) . OnSuccess ( v => SpaceCheck ( v . StringRep ) ) ;
3941 }
4042
4143 return new ( ( ) => get ( ) . OnSuccess ( v => SpaceCheck ( v . StringRep ) ) ) ;
@@ -44,7 +46,7 @@ TryGet<string> SpaceCheck(string value)
4446 {
4547 if ( ! allowsSpaces && value . Any ( char . IsWhiteSpace ) )
4648 {
47- return $ "Value contains spaces, which are not allowed". AsError ( ) ;
49+ return "Value contains spaces, which are not allowed" . AsError ( ) ;
4850 }
4951
5052 return value . AsSuccess ( ) ;
You can’t perform that action at this time.
0 commit comments