public static void RegisterType(VHDL.type.Type vhdlType, System.Type runtimeType) { if (typeDictionary == null) { typeDictionary = new Dictionary <VHDL.type.Type, System.Type>(); } if (typeDictionary.ContainsKey(vhdlType) == false) { typeDictionary.Add(vhdlType, runtimeType); } else { typeDictionary[vhdlType] = runtimeType; } }
public static bool ContainsBuiltInType(VHDL.type.Type type) { return(typeDictionary.ContainsKey(type)); }
public static System.Type GetBuiltInType(VHDL.type.Type type) { return(typeDictionary[type]); }
public static Signal CreateSignal(VHDL.type.Type type, string identifier, List <AbstractSignalDump> dumps) { return(new Signal(ModellingType.CreateModellingType(type), new VHDL.Object.Signal(identifier, type), dumps)); }
public static Signal CreateSignal(VHDL.type.Type type, string identifier) { return(new Signal(ModellingType.CreateModellingType(type), new VHDL.Object.Signal(identifier, type))); }
public TypeObserver(VHDL.type.Type type, Logger logger) { this.logger = logger; this.type = type; }
private void ObserveTypeDeclaration(VHDLCompilerInterface compiler, VHDL.type.Type item) { TypeObserver typeObserver = new TypeObserver(item, logger); typeObserver.Observe(compiler); }
/// <summary> /// Конструктор /// </summary> /// <param name="type"></param> public ScalarValue(VHDL.type.Type type) : base(ModellingType.CreateModellingType(type)) { }