All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.joern.fuzzyc2cpg.parser.shared.builders.TemplateAstBuilder Maven / Gradle / Ivy

There is a newer version: 1.1.911
Show newest version
package io.joern.fuzzyc2cpg.parser.shared.builders;

import io.joern.fuzzyc2cpg.ModuleParser;
import io.joern.fuzzyc2cpg.ast.AstNode;
import io.joern.fuzzyc2cpg.ast.AstNodeBuilder;
import io.joern.fuzzyc2cpg.parser.functions.builder.TemplateParameterListBuilder;

public abstract class TemplateAstBuilder extends AstNodeBuilder {

  protected final TemplateParameterListBuilder templateParamBuilder = new TemplateParameterListBuilder();

  public void setTemplateList(ModuleParser.Template_declContext ctx) {
    templateParamBuilder.createNew(ctx);
    item.addChild(templateParamBuilder.getItem());
  }

  public void addTemplateParameter(ModuleParser.Template_nameContext ctx) {
    templateParamBuilder.addTemplateParameter(ctx);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy