private static void GenerateTypeSupport(Type type) { CachedNodeType newCachedType = new CachedNodeType(type); CachedNodeTypes[type] = newCachedType; NodeWrenches[type] = new NodeWrench(newCachedType); }
public NodeWrench(CachedNodeType cachedNodeType) { _cachedNodeType = cachedNodeType; _classWirers = cachedNodeType.Attributes.Where(a => a is IClassWirer).Cast <IClassWirer>().ToArray(); foreach (CachedNodeStateInfo state in cachedNodeType.GetStates()) { _stateWirers[state] = state.Attributes.Where(a => a is IStateWirer).Cast <IStateWirer>().ToArray(); } foreach (CachedNodeMethodInfo method in cachedNodeType.GetMethods()) { _methodWirers[method] = method.Attributes.Where(a => a is IMethodWirer).Cast <IMethodWirer>().ToArray(); } }
public CachedTokenElement(CachedNodeType tokenNodeType) : base(tokenNodeType) { }
public void Wire(Node node, CachedNodeType @class) { node.AddToGroup(_group); }