MCPcopy Create free account
hub / github.com/antlr/codebuff / addArg

Method addArg

output/java/1.4.13/CompiledST.java:192–198  ·  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

190 /** Used by {@link ST#add} to add args one by one without turning on full formal args definition signal. */
191
192 public void addArg(FormalArgument a) {
193 if ( formalArguments==null ) {
194 formalArguments = Collections.synchronizedMap(new LinkedHashMap<String, FormalArgument>());
195 }
196 a.index = formalArguments.size();
197 formalArguments.put(a.name, a);
198 }
199
200 public void defineImplicitlyDefinedTemplates(STGroup group) {
201 if ( implicitlyDefinedTemplates!=null ) {

Callers 2

defineFormalArgsMethod · 0.95
addMethod · 0.45

Calls 2

sizeMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected