Пример #1
0
        protected override void DoEmit(CancellationToken cancellationToken = new CancellationToken())
        {
            var visitor = new Visitor(EmitterContext, cancellationToken);

            visitor.Visit(_node);
            FirstBlock = visitor.FirstBlock;
        }
Пример #2
0
            private void Emit <TBlock, TSyntax>(TSyntax syntax)
                where TBlock : AbstractHaxeScriptEmitterBlock <TSyntax>, new()
                where TSyntax : SyntaxNode
            {
                var block = new TBlock();

                if (FirstBlock == null)
                {
                    FirstBlock = block;
                }
                block.Emit(_context, syntax, _cancellationToken);
            }