Property | Type | Description | |
---|---|---|---|
program |
Method | Description | |
---|---|---|
Create ( CSharpSyntaxNode node, |
Factory method for class ProgramASTWalker.
|
|
ProgramASTWalker ( |
Copy initializes a new instance of the ProgramASTWalker class. For testability. |
|
VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : void |
This will cause an AST walker to be created, thus we don't need to go further deeper in the tree by visiting the node. |
|
VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void |
|
|
VisitNamespaceDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax node ) : void |
This will cause an AST walker to be created, thus we don't need to go further deeper in the tree by visiting the node. |
|
Walk ( ) : ITranslationUnit |
Walk the whole tree starting from specified CSharpSyntaxNode and build the translation unit tree necessary for generating TypeScript output.
|
Method | Description | |
---|---|---|
InvokeClassDeclarationVisited ( object sender, |
||
InvokeEnumDeclarationVisited ( object sender, |
||
InvokeInterfaceDeclarationVisited ( object sender, |
||
InvokeNamespaceDeclarationVisited ( object sender, |
||
ProgramASTWalker ( CSharpSyntaxNode node, |
Initializes a new instance of the ProgramASTWalker class.
|
Method | Description | |
---|---|---|
CreateWalkingContext ( ) : |
public static Create ( CSharpSyntaxNode node, |
||
node | CSharpSyntaxNode | |
context | The walking context. | |
semanticModel | Microsoft.CodeAnalysis.SemanticModel | The semantic model. |
return |
protected InvokeClassDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
return | void |
protected InvokeEnumDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
return | void |
protected InvokeInterfaceDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
return | void |
protected InvokeNamespaceDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
return | void |
protected ProgramASTWalker ( CSharpSyntaxNode node, |
||
node | CSharpSyntaxNode | |
program | ||
semanticModel | Microsoft.CodeAnalysis.SemanticModel | The semantic model. |
return | System |
public ProgramASTWalker ( |
||
other | ||
return | System |
public VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : void | ||
node | Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax | |
return | void |
public VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void | ||
node | InterfaceDeclarationSyntax | |
return | void |
public VisitNamespaceDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax node ) : void | ||
node | Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax | |
return | void |