test_class.file: dart-lang/src/test/java/fr/insideapp/sonarqube/dart/lang/antlr/CustomTreeVisitorTest.java
test_class.identifier: CustomTreeVisitorTest
test_case.body: @Test
      public void visit() throws IOException {
  
          final CharStream charStream = CharStreams.fromStream(this.getClass().getResourceAsStream("/dart/main.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();
  
          CustomTreeVisitor customTreeVisitor = new CustomTreeVisitor(new ParseTreeItemVisitor() {
              @Override
              public void apply(ParseTree tree) {
  
              }
  
              @Override
              public void fillContext(SensorContext context, AntlrContext antlrContext) {
                  assertThat(antlrContext.getTokens().length).isEqualTo(371);
              }
          });
          AntlrContext antlrContext = AntlrUtils.getRequest(IOUtils.toString(this.getClass().getResourceAsStream("/dart/main.dart"), "UTF-8"));
          customTreeVisitor.visit(root);
          customTreeVisitor.fillContext(null, antlrContext);
      }
test_case.class_method_signature: CustomTreeVisitorTest.visit()
test_case.full_signature: @Test public void visit()
test_case.identifier: visit
test_case.invocations: fromStream getResourceAsStream getClass removeErrorListeners fill removeErrorListeners compilationUnit isEqualTo assertThat getTokens getRequest toString getResourceAsStream getClass visit fillContext
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void visit()
focal_class.declarator: visitors
focal_class.modifier: private final
focal_class.original_string: private final ParseTreeItemVisitor[] visitors;
focal_class.type: ParseTreeItemVisitor[]
focal_class.var_name: visitors
focal_class.file: dart-lang/src/main/java/fr/insideapp/sonarqube/dart/lang/antlr/CustomTreeVisitor.java
focal_class.identifier: CustomTreeVisitor
focal_class.interfaces: implements ParseTreeItemVisitor
focal_class.class_method_signature: CustomTreeVisitor.CustomTreeVisitor(final ParseTreeItemVisitor... visitors)
focal_class.full_signature: public  CustomTreeVisitor(final ParseTreeItemVisitor... visitors)
focal_class.identifier: CustomTreeVisitor
focal_class.modifiers: public
focal_class.parameters: (final ParseTreeItemVisitor... visitors)
focal_class.signature:  CustomTreeVisitor(final ParseTreeItemVisitor... visitors)
focal_class.class_method_signature: CustomTreeVisitor.visit(final ParseTree tree)
focal_class.full_signature: @Override public Object visit(final ParseTree tree)
focal_class.identifier: visit
focal_class.modifiers: @Override public
focal_class.parameters: (final ParseTree tree)
focal_class.return: Object
focal_class.signature: Object visit(final ParseTree tree)
focal_class.class_method_signature: CustomTreeVisitor.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: CustomTreeVisitor.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.superclass: extends AbstractParseTreeVisitor
focal_method.body: @Override
      public Object visit(final ParseTree tree) {
  
          final int n = tree.getChildCount();
  
          for (int i = 0; i < n; i++) {
              final ParseTree c = tree.getChild(i);
              visit(c);
          }
          for (final ParseTreeItemVisitor visitor : this.visitors) {
              visitor.apply(tree);
          }
  
          return null;
      }
focal_method.class_method_signature: CustomTreeVisitor.visit(final ParseTree tree)
focal_method.full_signature: @Override public Object visit(final ParseTree tree)
focal_method.identifier: visit
focal_method.invocations: getChildCount getChild visit apply
focal_method.modifiers: @Override public
focal_method.parameters: (final ParseTree tree)
focal_method.return: Object
focal_method.signature: Object visit(final ParseTree tree)