public static Finalize ( |
||
parent | ||
thing | ||
csharptype | string>.KeyValuePair | |
return | void |
public static SingleType WhatItIs(MsgsFile parent, SingleType t) { foreach (KeyValuePair <string, string> test in KnownTypes) { if (t.Test(test)) { t.rostype = t.Type; return(t.Finalize(parent, test)); } } return(t.Finalize(parent, t.input.Split(spliter, StringSplitOptions.RemoveEmptyEntries), false)); }
public static void WhatItIs(MsgFile parent, SingleType t) { if (t.IsPrimitve) { t.rostype = t.Type; SingleType.Finalize(parent, t); return; } t.Finalize(parent, t.input.Split(spliter, StringSplitOptions.RemoveEmptyEntries), false); }
public static void Finalize(MsgFile parent, SingleType thing) { string[] parts = thing.input.Split(' '); thing.rostype = parts[0]; if (!KnownStuff.KnownTypes.ContainsKey(thing.rostype)) { thing.meta = true; } else { parts[0] = KnownStuff.KnownTypes[thing.rostype]; } thing.Finalize(parent, parts, true); }
public static SingleType WhatItIs(MsgsFile parent, SingleType t) { foreach (KeyValuePair<string, string> test in KnownTypes) { if (t.Test(test)) { t.rostype = t.Type; return t.Finalize(parent, test); } } return t.Finalize(parent, t.input.Split(spliter, StringSplitOptions.RemoveEmptyEntries), false); }
public static void Finalize(MsgsFile parent, SingleType thing, KeyValuePair<string, string> csharptype) { string[] PARTS = thing.input.Split(' '); thing.rostype = PARTS[0]; if (!KnownStuff.KnownTypes.ContainsKey(thing.rostype)) thing.meta = true; PARTS[0] = csharptype.Value; thing.Finalize(parent, PARTS, true); }