Class NamespaceDeclaration
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
namespace Name { Members }
public class NamespaceDeclaration : AstNode, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
NamespaceDeclaration
- Implements
- Inherited Members
- Extension Methods
Constructors
NamespaceDeclaration()
public NamespaceDeclaration()
NamespaceDeclaration(string)
public NamespaceDeclaration(string name)
Parameters
name
string
Fields
MemberRole
public static readonly Role<AstNode> MemberRole
Field Value
NamespaceNameRole
public static readonly Role<AstType> NamespaceNameRole
Field Value
Properties
FullName
Gets the full namespace name (including any parent namespaces)
public string FullName { get; }
Property Value
Identifiers
public IEnumerable<string> Identifiers { get; }
Property Value
IsFileScoped
public bool IsFileScoped { get; set; }
Property Value
LBraceToken
public CSharpTokenNode LBraceToken { get; }
Property Value
Members
public AstNodeCollection<AstNode> Members { get; }
Property Value
Name
public string Name { get; set; }
Property Value
NamespaceName
public AstType NamespaceName { get; set; }
Property Value
NamespaceToken
public CSharpTokenNode NamespaceToken { get; }
Property Value
NodeType
public override NodeType NodeType { get; }
Property Value
RBraceToken
public CSharpTokenNode RBraceToken { get; }
Property Value
Methods
AcceptVisitor(IAstVisitor)
public override void AcceptVisitor(IAstVisitor visitor)
Parameters
visitor
IAstVisitor
AcceptVisitor<T>(IAstVisitor<T>)
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
Parameters
visitor
IAstVisitor<T>
Returns
- T
Type Parameters
T
AcceptVisitor<T, S>(IAstVisitor<T, S>, T)
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
Parameters
visitor
IAstVisitor<T, S>data
T
Returns
- S
Type Parameters
T
S
AddMember(AstNode)
public void AddMember(AstNode child)
Parameters
child
AstNode
BuildQualifiedName(string, string)
public static string BuildQualifiedName(string name1, string name2)
Parameters
Returns
DoMatch(AstNode, Match)
protected override bool DoMatch(AstNode other, Match match)