public static object DoStaticCall(IEnumerator <string> items) { Type type = ParseHelper.GetTypeOf(items.Current); items.MoveNext(); return(CompleteCall(items, type, null)); }
public static object DoGetStatic(IEnumerator <string> items) { Type type = ParseHelper.GetTypeOf(items.Current); items.MoveNext(); FieldInfo fieldInfo = AccessTools.Field(type, items.Current); Parser.notFinished = items.MoveNext(); return(fieldInfo.GetValue(null)); }
public static object DoFind(IEnumerator <string> items) { Type type = ParseHelper.GetTypeOf(items.Current); items.MoveNext(); string value = items.Current; object curObj; curObj = ParseHelper.GetTypedObject(type, value); Parser.notFinished = items.MoveNext(); return(CompleteFind(items, curObj)); }
public static object DoNew(IEnumerator <string> items) { Type type = ParseHelper.GetTypeOf(items.Current); Parser.notFinished = items.MoveNext(); List <object> parameters = null; if (Parser.notFinished && items.Current == "start params") { parameters = GetParams(items); } return(ParseHelper.MakeTypedObjectWithParams(type, parameters)); }