Пример #1
0
 public InternalModule(InternalTypeSystemProvider provider, Module module)
 {
     _provider = provider;
     _module = module;
     _namespace = SafeNamespace(module);
     _module.Imports.Changed += (sender, e) => _namespaceList = null;
     _module.Members.Changed += (sender, e) => _memberCache = null;
 }
Пример #2
0
		public BooClassBuilder(string name)
		{
			if (name == null)
				throw new ArgumentNullException("name");
			
			_internalTypeSystemProvider = My<InternalTypeSystemProvider>.Instance;
			_codeBuilder = My<BooCodeBuilder>.Instance;
			_cd = new ClassDefinition { Name = name, IsSynthetic = true };
			EnsureEntityFor(_cd);
		}
Пример #3
0
        public Ast.Module CreateModule(string moduleName, string nameSpace)
        {
            var module = new Ast.Module {
                Name = moduleName
            };

            if (!string.IsNullOrEmpty(nameSpace))
            {
                module.Namespace = new NamespaceDeclaration(nameSpace);
            }
            InternalTypeSystemProvider.EntityFor(module);             // ensures the module is bound
            return(module);
        }
Пример #4
0
        public BooClassBuilder(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            _internalTypeSystemProvider = My <InternalTypeSystemProvider> .Instance;
            _codeBuilder = My <BooCodeBuilder> .Instance;
            _cd          = new ClassDefinition {
                Name = name, IsSynthetic = true
            };
            EnsureEntityFor(_cd);
        }
Пример #5
0
		internal InternalClass(InternalTypeSystemProvider provider, TypeDefinition typeDefinition, bool isByRef) :
			base(provider, typeDefinition)
		{
			IsByRef = isByRef;
		}
Пример #6
0
		internal InternalClass(InternalTypeSystemProvider provider, TypeDefinition typeDefinition) :
			this(provider, typeDefinition, false)
		{
		}
Пример #7
0
		public CompileUnitNamespace(CompileUnit unit)
		{
			_nameResolutionService = My<NameResolutionService>.Instance;
			_internalTypeSystemProvider = My<InternalTypeSystemProvider>.Instance;
			_compileUnit = unit;
		}
Пример #8
0
 private void EnsureEntityFor(TypeMember member)
 {
     InternalTypeSystemProvider.EntityFor(member);
 }
Пример #9
0
 public InternalGenericMethod(InternalTypeSystemProvider provider, Method method)
     : base(provider, method)
 {
 }
Пример #10
0
		internal InternalCallableType(InternalTypeSystemProvider provider, TypeDefinition typeDefinition) :
			base(provider, typeDefinition)
		{
		}
Пример #11
0
		public override void Initialize(CompilerContext context)
		{
			base.Initialize(context);
			_internalTypeSystemProvider = My<InternalTypeSystemProvider>.Instance;

		}
Пример #12
0
 override public void Run()
 {
     _internalTypeSystemProvider = My <InternalTypeSystemProvider> .Instance;
     Visit(CompileUnit.Modules);
 }
Пример #13
0
		internal InternalEnum(InternalTypeSystemProvider provider, TypeDefinition enumDefinition, bool isByRef) :
			base(provider, enumDefinition)
		{
			_isByRef = isByRef;
		}
Пример #14
0
		internal InternalEnum(InternalTypeSystemProvider provider, EnumDefinition enumDefinition) :
			this(provider, enumDefinition, false)
		{
		}
Пример #15
0
		public InternalModule(InternalTypeSystemProvider provider, Module module)
		{
			_provider = provider;
			_module = module;			
			_namespace = SafeNamespace(module);
		}
Пример #16
0
		override public void Run()
		{
			_internalTypeSystemProvider = My<InternalTypeSystemProvider>.Instance;
			Visit(CompileUnit.Modules);
		}
Пример #17
0
 public override void Initialize(CompilerContext context)
 {
     base.Initialize(context);
     _internalTypeSystemProvider = My <InternalTypeSystemProvider> .Instance;
 }
Пример #18
0
		public InternalConstructor(InternalTypeSystemProvider provider,
		                           Constructor constructor) : base(provider, constructor)
		{
		}