Overload resolution service.
상속: AbstractCompilerComponent
예제 #1
0
 public Candidate(CallableResolutionService crs, IMethod entity)
 {
     _crs    = crs;
     Method  = entity;
     _scores = new int[crs._arguments.Count];
 }
예제 #2
0
        public override void Run()
        {
            NameResolutionService.Reset();

            _currentModule = null;
            _currentMethod = null;
            _methodStack = new Stack();
            _memberStack = new Stack();

            _callableResolution = new CallableResolutionService();
            _callableResolution.Initialize(_context);

            InitializeMemberCache();

            Visit(CompileUnit);
        }
예제 #3
0
        public override void Dispose()
        {
            base.Dispose();

            if (null != _callableResolution)
            {
                _callableResolution.Dispose();
                _callableResolution = null;
            }

            _currentModule = null;
            _currentMethod = null;
            _methodStack = null;
            _memberStack = null;

            _RuntimeServices_Len = null;
            _RuntimeServices_Mid = null;
            _RuntimeServices_NormalizeStringIndex = null;
            _RuntimeServices_AddArrays = null;
            _RuntimeServices_GetRange1 = null;
            _RuntimeServices_GetRange2 = null;
            _RuntimeServices_GetMultiDimensionalRange1 = null;
            _RuntimeServices_SetMultiDimensionalRange1 = null;
            _RuntimeServices_GetEnumerable = null;
            _RuntimeServices_EqualityOperator = null;
            _Array_get_Length = null;
            _Array_GetLength = null;
            _String_get_Length = null;
            _String_Substring_Int = null;
            _ICollection_get_Count = null;
            _List_GetRange1 = null;
            _List_GetRange2 = null;
            _ICallable_Call = null;
            _Activator_CreateInstance = null;
            _Exception_StringConstructor = null;
            _TextReaderEnumerator_lines = null;
        }
 public Candidate(CallableResolutionService crs, IMethod entity)
 {
     _crs = crs;
     Method = entity;
     _scores = new int[crs._arguments.Count];
 }