示例#1
0
 public CommonConversions(SemanticModel semanticModel, SyntaxGenerator vbSyntaxGenerator,
                          CommentConvertingVisitorWrapper <VisualBasicSyntaxNode> nodesVisitor)
 {
     VbSyntaxGenerator = vbSyntaxGenerator;
     _semanticModel    = semanticModel;
     _nodesVisitor     = nodesVisitor;
 }
示例#2
0
 public MethodBodyExecutableStatementVisitor(SemanticModel semanticModel,
                                             CommentConvertingVisitorWrapper <VisualBasicSyntaxNode> nodesVisitor, CommonConversions commonConversions)
 {
     this._semanticModel      = semanticModel;
     this._nodesVisitor       = nodesVisitor;
     _commonConversions       = commonConversions;
     CommentConvertingVisitor = new CommentConvertingMethodBodyVisitor(this);
 }
 public static T Accept <T>(this SyntaxNode node, CommentConvertingVisitorWrapper <T> visitorWrapper, bool addSourceMapping = true) where T : VBasic.VisualBasicSyntaxNode
 {
     if (node == null)
     {
         return(default(T));
     }
     return(visitorWrapper.Accept(node, addSourceMapping));
 }