~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/NRefactory/Project/Src/Ast/INode.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// <file>
2
 
//     <copyright see="prj:///doc/copyright.txt"/>
3
 
//     <license see="prj:///doc/license.txt"/>
4
 
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
5
 
//     <version>$Revision: 4482 $</version>
6
 
// </file>
7
 
 
8
 
using System;
9
 
using System.Collections.Generic;
10
 
 
11
 
namespace ICSharpCode.OldNRefactory.Ast
12
 
{
13
 
        public interface INode
14
 
        {
15
 
                INode Parent { 
16
 
                        get;
17
 
                        set;
18
 
                }
19
 
                
20
 
                List<INode> Children {
21
 
                        get;
22
 
                }
23
 
                
24
 
                Location StartLocation {
25
 
                        get;
26
 
                        set;
27
 
                }
28
 
                
29
 
                Location EndLocation {
30
 
                        get;
31
 
                        set;
32
 
                }
33
 
                
34
 
                object UserData {
35
 
                        get;
36
 
                        set;
37
 
                }
38
 
                
39
 
                /// <summary>
40
 
                /// Visits all children
41
 
                /// </summary>
42
 
                /// <param name="visitor">The visitor to accept</param>
43
 
                /// <param name="data">Additional data for the visitor</param>
44
 
                /// <returns>The paremeter <paramref name="data"/></returns>
45
 
                object AcceptChildren(IAstVisitor visitor, object data);
46
 
                
47
 
                /// <summary>
48
 
                /// Accept the visitor
49
 
                /// </summary>
50
 
                /// <param name="visitor">The visitor to accept</param>
51
 
                /// <param name="data">Additional data for the visitor</param>
52
 
                /// <returns>The value the visitor returns after the visit</returns>
53
 
                object AcceptVisitor(IAstVisitor visitor, object data);
54
 
        }
55
 
}