Exemplo n.º 1
0
        public override void VisitUsingDirective(UsingDirectiveIntermediateNode node)
        {
            var children = _namespace.Current.Children;
            var i        = children.Count - 1;

            for (; i >= 0; i--)
            {
                var child = children[i];
                if (child is UsingDirectiveIntermediateNode)
                {
                    break;
                }
            }

            _namespace.Insert(i + 1, node);
        }
 public override void Insert(int index, IntermediateNode node)
 {
     node.Annotations[CommonAnnotations.Imported] = CommonAnnotations.Imported;
     _innerBuilder.Insert(index, node);
 }