public RCSyntaxException(RCToken token, Exception exception) : base(MakeMessage(token, null)) { RCAssert.ArgumentIsNotNull(token, "token"); RCAssert.ArgumentIsNotNull(exception, "exception"); Token = token; Exception = exception; }
public static RCValue Parse(string code, out bool fragment) { RCParser parser = new RCLParser(Activator); RCArray <RCToken> tokens = new RCArray <RCToken> (); parser.Lex(code, tokens); RCValue result = parser.Parse(tokens, out fragment, canonical: false); RCAssert.IsNotNull(result, "The result of parser.Parse() was null."); return(result); }
public RCSyntaxException(RCToken token, string details) : base(MakeMessage(token, details)) { RCAssert.ArgumentIsNotNull(token, "token"); Token = token; }
public void Lock() { RCAssert.ArrayHasNoNulls <T> (this); _lock = true; }