示例#1
0
 private IExpressionBinding Visit(Declaration module, Declaration parent, VBAExpressionParser.DefinedTypeExpressionContext expression)
 {
     if (expression.simpleNameExpression() != null)
     {
         return(Visit(module, parent, expression.simpleNameExpression()));
     }
     return(Visit(module, parent, expression.memberAccessExpression()));
 }
 /// <summary>
 /// Visit a parse tree produced by <see cref="VBAExpressionParser.definedTypeExpression"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitDefinedTypeExpression([NotNull] VBAExpressionParser.DefinedTypeExpressionContext context)
 {
     return(VisitChildren(context));
 }