Table of Contents

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

Role<AstNode>

NamespaceNameRole

public static readonly Role<AstType> NamespaceNameRole

Field Value

Role<AstType>

Properties

FullName

Gets the full namespace name (including any parent namespaces)

public string FullName { get; }

Property Value

string

Identifiers

public IEnumerable<string> Identifiers { get; }

Property Value

IEnumerable<string>

IsFileScoped

public bool IsFileScoped { get; set; }

Property Value

bool

LBraceToken

public CSharpTokenNode LBraceToken { get; }

Property Value

CSharpTokenNode

Members

public AstNodeCollection<AstNode> Members { get; }

Property Value

AstNodeCollection<AstNode>

Name

public string Name { get; set; }

Property Value

string

NamespaceName

public AstType NamespaceName { get; set; }

Property Value

AstType

NamespaceToken

public CSharpTokenNode NamespaceToken { get; }

Property Value

CSharpTokenNode

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

RBraceToken

public CSharpTokenNode RBraceToken { get; }

Property Value

CSharpTokenNode

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

name1 string
name2 string

Returns

string

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool