test_class.file: dart-lang/src/test/java/fr/insideapp/sonarqube/dart/lang/antlr/CyclomaticComplexityVisitorTest.java
test_class.identifier: CyclomaticComplexityVisitorTest
test_case.body: @Test
      public void complexity() throws IOException {
          final CharStream charStream = CharStreams.fromStream(this.getClass().getResourceAsStream("/dart/complexity.dart"));
          final Dart2Lexer lexer = new Dart2Lexer(charStream);
          lexer.removeErrorListeners();
          final CommonTokenStream stream = new CommonTokenStream(lexer);
          stream.fill();
          final Dart2Parser parser = new Dart2Parser(stream);
          parser.removeErrorListeners();
          final ParseTree root = parser.compilationUnit();
  
          CyclomaticComplexityVisitor visitor = new CyclomaticComplexityVisitor();
          CustomTreeVisitor customTreeVisitor = new CustomTreeVisitor(visitor);
          customTreeVisitor.visit(root);
          assertThat(visitor.getComplexity()).isEqualTo(7);
      }
test_case.class_method_signature: CyclomaticComplexityVisitorTest.complexity()
test_case.full_signature: @Test public void complexity()
test_case.identifier: complexity
test_case.invocations: fromStream getResourceAsStream getClass removeErrorListeners fill removeErrorListeners compilationUnit visit isEqualTo assertThat getComplexity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void complexity()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(CyclomaticComplexityVisitor.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(CyclomaticComplexityVisitor.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: complexity = 0
focal_class.modifier: private
focal_class.original_string: private int complexity = 0;
focal_class.type: int
focal_class.var_name: complexity
focal_class.file: dart-lang/src/main/java/fr/insideapp/sonarqube/dart/lang/antlr/CyclomaticComplexityVisitor.java
focal_class.identifier: CyclomaticComplexityVisitor
focal_class.interfaces: implements ParseTreeItemVisitor
focal_class.class_method_signature: CyclomaticComplexityVisitor.apply(ParseTree tree)
focal_class.full_signature: @Override public void apply(ParseTree tree)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (ParseTree tree)
focal_class.return: void
focal_class.signature: void apply(ParseTree tree)
focal_class.class_method_signature: CyclomaticComplexityVisitor.fillContext(SensorContext context, AntlrContext antlrContext)
focal_class.full_signature: @Override public void fillContext(SensorContext context, AntlrContext antlrContext)
focal_class.identifier: fillContext
focal_class.modifiers: @Override public
focal_class.parameters: (SensorContext context, AntlrContext antlrContext)
focal_class.return: void
focal_class.signature: void fillContext(SensorContext context, AntlrContext antlrContext)
focal_class.class_method_signature: CyclomaticComplexityVisitor.getComplexity()
focal_class.full_signature: public int getComplexity()
focal_class.identifier: getComplexity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getComplexity()
focal_method.body: public int getComplexity() {
          return complexity;
      }
focal_method.class_method_signature: CyclomaticComplexityVisitor.getComplexity()
focal_method.full_signature: public int getComplexity()
focal_method.identifier: getComplexity
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getComplexity()