Пример #1
0
        public OpenTypePlaceholderType CreateUnit()
        {
            OpenTypePlaceholderType type = new OpenTypePlaceholderType();

            type.SetTypeKind(TypeKind.TK_OpenTypePlaceholderType);
            return(type);
        }
Пример #2
0
        public TypeManager()
        {
            _predefTypes = null; // Initialized via the Init call.
            _BSymmgr     = null; // Initialized via the Init call.
            _typeFactory = new TypeFactory();
            _typeTable   = new TypeTable();

            // special types with their own symbol kind.
            _errorType    = _typeFactory.CreateError(null, null, null, null, null);
            _voidType     = _typeFactory.CreateVoid();
            _nullType     = _typeFactory.CreateNull();
            _typeUnit     = _typeFactory.CreateUnit();
            _typeAnonMeth = _typeFactory.CreateAnonMethod();
            _typeMethGrp  = _typeFactory.CreateMethodGroup();
            _argListType  = _typeFactory.CreateArgList();

            InitType(_errorType);
            _errorType.SetErrors(true);

            InitType(_voidType);
            InitType(_nullType);
            InitType(_typeUnit);
            InitType(_typeAnonMeth);
            InitType(_typeMethGrp);

            _stvcMethod = new StdTypeVarColl();
            _stvcClass  = new StdTypeVarColl();
        }
Пример #3
0
        public TypeManager()
        {
            _predefTypes = null; // Initialized via the Init call.
            _BSymmgr = null; // Initialized via the Init call.
            _typeFactory = new TypeFactory();
            _typeTable = new TypeTable();

            // special types with their own symbol kind.
            _errorType = _typeFactory.CreateError(null, null, null, null, null);
            _voidType = _typeFactory.CreateVoid();
            _nullType = _typeFactory.CreateNull();
            _typeUnit = _typeFactory.CreateUnit();
            _typeAnonMeth = _typeFactory.CreateAnonMethod();
            _typeMethGrp = _typeFactory.CreateMethodGroup();
            _argListType = _typeFactory.CreateArgList();

            InitType(_errorType);
            _errorType.SetErrors(true);

            InitType(_voidType);
            InitType(_nullType);
            InitType(_typeUnit);
            InitType(_typeAnonMeth);
            InitType(_typeMethGrp);

            _stvcMethod = new StdTypeVarColl();
            _stvcClass = new StdTypeVarColl();
        }
Пример #4
0
        public TypeManager(BSYMMGR bsymmgr, PredefinedTypes predefTypes)
        {
            _typeFactory = new TypeFactory();
            _typeTable   = new TypeTable();

            // special types with their own symbol kind.
            _errorType   = _typeFactory.CreateError(null, null, null, null, null);
            _voidType    = _typeFactory.CreateVoid();
            _nullType    = _typeFactory.CreateNull();
            _typeUnit    = _typeFactory.CreateUnit();
            _typeMethGrp = _typeFactory.CreateMethodGroup();
            _argListType = _typeFactory.CreateArgList();

            _errorType.SetErrors(true);

            _stvcMethod  = new StdTypeVarColl();
            _stvcClass   = new StdTypeVarColl();
            _BSymmgr     = bsymmgr;
            _predefTypes = predefTypes;
        }
Пример #5
0
 public OpenTypePlaceholderType CreateUnit()
 {
     OpenTypePlaceholderType type = new OpenTypePlaceholderType();
     type.SetTypeKind(TypeKind.TK_OpenTypePlaceholderType);
     return type;
 }