MCPcopy Index your code
hub / github.com/antlr/codebuff / addArg

Method addArg

output/java8/1.4.17/CompiledST.java:202–208  ·  view source on GitHub ↗

Used by ST#add to add args one by one without turning on full formal args definition signal.

(FormalArgument a)

Source from the content-addressed store, hash-verified

200
201
202 public void addArg(FormalArgument a) {
203 if ( formalArguments==null ) {
204 formalArguments = Collections.synchronizedMap(new LinkedHashMap<String, FormalArgument>());
205 }
206 a.index = formalArguments.size();
207 formalArguments.put(a.name, a);
208 }
209
210
211 public void defineImplicitlyDefinedTemplates(STGroup group) {

Callers 2

defineFormalArgsMethod · 0.95
addMethod · 0.45

Calls 2

sizeMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected