public void AddImplementation(SymbolImplementation implementation)
        {
            Debug.Assert(_implementation == null);
            Debug.Assert(implementation != null);

            _implementation = implementation;
        }
        public ICollection<Symbol> TransformSymbolImplementation(SymbolImplementation implementation) {
            List<Symbol> transformedSymbols = new List<Symbol>();

            SymbolScope scope = implementation.Scope;
            TransformScope(scope, transformedSymbols);

            return transformedSymbols;
        }
        public ICollection <Symbol> TransformSymbolImplementation(SymbolImplementation implementation)
        {
            List <Symbol> transformedSymbols = new List <Symbol>();

            SymbolScope scope = implementation.Scope;

            TransformScope(scope, transformedSymbols);

            return(transformedSymbols);
        }
Esempio n. 4
0
        public void AddImplementation(SymbolImplementation implementation, bool adder) {
            Debug.Assert(implementation != null);

            if (adder) {
                Debug.Assert(_adderImplementation == null);
                _adderImplementation = implementation;
            }
            else {
                Debug.Assert(_removerImplementation == null);
                _removerImplementation = implementation;
            }
        }
Esempio n. 5
0
        public void AddImplementation(SymbolImplementation implementation, bool getter) {
            Debug.Assert(implementation != null);

            if (getter) {
                Debug.Assert(_getterImplementation == null);
                _getterImplementation = implementation;
            }
            else {
                Debug.Assert(_setterImplementation == null);
                _setterImplementation = implementation;
            }
        }
Esempio n. 6
0
        public void AddImplementation(SymbolImplementation implementation, bool getter)
        {
            Debug.Assert(implementation != null);

            if (getter)
            {
                Debug.Assert(_getterImplementation == null);
                _getterImplementation = implementation;
            }
            else
            {
                Debug.Assert(_setterImplementation == null);
                _setterImplementation = implementation;
            }
        }
Esempio n. 7
0
        public void AddImplementation(SymbolImplementation implementation, bool adder)
        {
            Debug.Assert(implementation != null);

            if (adder)
            {
                Debug.Assert(_adderImplementation == null);
                _adderImplementation = implementation;
            }
            else
            {
                Debug.Assert(_removerImplementation == null);
                _removerImplementation = implementation;
            }
        }
Esempio n. 8
0
        public void AddImplementation(SymbolImplementation implementation) {
            Debug.Assert(_implementation == null);
            Debug.Assert(implementation != null);

            _implementation = implementation;
        }
Esempio n. 9
0
 private static void GenerateImplementationScript(ScriptGenerator generator, MemberSymbol symbol, SymbolImplementation implementation) {
     foreach (Statement statement in implementation.Statements) {
         StatementGenerator.GenerateStatement(generator, symbol, statement);
     }
 }