Esempio n. 1
0
        public TypeData(string name, IReadOnlyContext owningContext, bool isSingleton = false)
        {
            this.Name = name;
            this.IsSingleton = isSingleton;

            this.context = new ContextData(owningContext);

            functions = new List<IReadOnlyFunction>();
            funcNames = new HashSet<string>();
        }
Esempio n. 2
0
 internal VariableData(string name, IReadOnlyType type, IReadOnlyContext owner)
 {
     this.Name = name;
     this.Type = type;
     this.OwningContext = owner;
 }
Esempio n. 3
0
 internal ContextData(IReadOnlyContext parentContext)
 {
     this.parentContext = parentContext;
     variablesByName = new Dictionary<string, IReadOnlyVariable>();
     typesByName = new Dictionary<string, ITypeData>();
 }