Пример #1
0
        S IAstVisitor <T, S> .VisitEmptyStatement(EmptyStatement emptyStatement, T data)
        {
            var handler = EmptyStatementVisited;

            if (handler != null)
            {
                handler(emptyStatement, data);
            }
            return(VisitChildren(emptyStatement, data));
        }
Пример #2
0
        public override void WriteToken(Role role, string token)
        {
            CSharpTokenNode t    = new CSharpTokenNode(locationProvider.Location, (TokenRole)role);
            EmptyStatement  node = nodes.Peek().LastOrDefault() as EmptyStatement;

            if (node == null)
            {
                currentList.Add(t);
            }
            else
            {
                node.Location = locationProvider.Location;
            }
            base.WriteToken(role, token);
        }
Пример #3
0
 void IAstVisitor.VisitEmptyStatement(EmptyStatement emptyStatement)
 {
     Visit(EnterEmptyStatement, LeaveEmptyStatement, emptyStatement);
 }
Пример #4
0
 public virtual S VisitEmptyStatement(EmptyStatement emptyStatement, T data)
 {
     return(VisitChildren(emptyStatement, data));
 }
Пример #5
0
 public override void VisitEmptyStatement(EmptyStatement emptyStatement)
 {
     // Empty
 }
 public virtual S VisitEmptyStatement(EmptyStatement emptyStatement, T data)
 {
     throw new NotImplementedException();
 }