Свойство | Тип | Описание | |
---|---|---|---|
program |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
InvokeClassDeclarationVisited ( object sender, |
||
InvokeEnumDeclarationVisited ( object sender, |
||
InvokeInterfaceDeclarationVisited ( object sender, |
||
InvokeNamespaceDeclarationVisited ( object sender, |
||
ProgramASTWalker ( CSharpSyntaxNode node, |
Initializes a new instance of the ProgramASTWalker class.
|
Метод | Описание | |
---|---|---|
CreateWalkingContext ( ) : |
public static Create ( CSharpSyntaxNode node, |
||
node | CSharpSyntaxNode | |
context | The walking context. | |
semanticModel | Microsoft.CodeAnalysis.SemanticModel | The semantic model. |
Результат |
protected InvokeClassDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
Результат | void |
protected InvokeEnumDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
Результат | void |
protected InvokeInterfaceDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
Результат | void |
protected InvokeNamespaceDeclarationVisited ( object sender, |
||
sender | object | |
e | ||
Результат | void |
protected ProgramASTWalker ( CSharpSyntaxNode node, |
||
node | CSharpSyntaxNode | |
program | ||
semanticModel | Microsoft.CodeAnalysis.SemanticModel | The semantic model. |
Результат | System |
public ProgramASTWalker ( |
||
other | ||
Результат | System |
public VisitClassDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node ) : void | ||
node | Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax | |
Результат | void |
public VisitInterfaceDeclaration ( InterfaceDeclarationSyntax node ) : void | ||
node | InterfaceDeclarationSyntax | |
Результат | void |
public VisitNamespaceDeclaration ( Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax node ) : void | ||
node | Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax | |
Результат | void |