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

Method addArg

output/java/1.4.17/CompiledST.java:196–202  ·  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

194 /** Used by {@link ST#add} to add args one by one without turning on full formal args definition signal. */
195
196 public void addArg(FormalArgument a) {
197 if ( formalArguments==null ) {
198 formalArguments = Collections.synchronizedMap(new LinkedHashMap<String, FormalArgument>());
199 }
200 a.index = formalArguments.size();
201 formalArguments.put(a.name, a);
202 }
203
204 public void defineImplicitlyDefinedTemplates(STGroup group) {
205 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