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

Method getMangledRegionName

output/java/1.4.19/STGroup.java:484–490  ·  view source on GitHub ↗

The "foo" of t() ::= "<@foo()>" is mangled to "/region__/t__foo"

(String enclosingTemplateName, String name)

Source from the content-addressed store, hash-verified

482 */
483
484 public static String getMangledRegionName(String enclosingTemplateName, String name) {
485 if ( enclosingTemplateName.charAt(0)!='/' ) {
486 enclosingTemplateName = '/'+enclosingTemplateName;
487 }
488
489 return "/region__"+enclosingTemplateName+"__"+name;
490 }
491
492 /** Return {@code "t.foo"} from {@code "/region__/t__foo"} */
493

Callers 2

defineBlankRegionMethod · 0.95
defineRegionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected