Exemple #1
0
        public static string GetComment(this VBAParser.RemCommentContext remComment)
        {
            string rawComment = remComment.GetText();
            string bodyOnly   = Regex.Replace(rawComment, ":?REM(.*)", "$1", RegexOptions.IgnoreCase).TrimStart();

            return(bodyOnly);
        }
 public override void ExitRemComment(VBAParser.RemCommentContext context)
 {
     _contexts.Add(context);
 }
Exemple #3
0
 public override void ExitRemComment(VBAParser.RemCommentContext context)
 {
     _contexts.Add(new QualifiedContext <ParserRuleContext>(CurrentModuleName, context));
 }
 public override void ExitRemComment([NotNull] VBAParser.RemCommentContext context)
 {
     _remComments.Add(context);
 }