public override void EnterEndOfLine([NotNull] VBAParser.EndOfLineContext context) { int followingIndentationLevel = 0; // we have a proper newline if (context.NEWLINE() != null) { // the last whitespace, which is the one in front of the next line's contents var followingWhitespace = context.whiteSpace().LastOrDefault(); followingIndentationLevel = IndentationLevelFromWhitespace(followingWhitespace); } (_currentMember == null ? _moduleResults : _results).Add(new CodeMetricsResult(1, 0, followingIndentationLevel)); }
public override void EnterEndOfLine([NotNull] VBAParser.EndOfLineContext _) => workingValue++;
public override void ExitEndOfLine([NotNull] VBAParser.EndOfLineContext context) { _contexts.Add(context); }
public override void EnterEndOfLine([NotNull] VBAParser.EndOfLineContext context) { (_currentMember == null ? _moduleResults : _results).Add(new CodeMetricsResult(1, 0, 0)); }