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

Method getMangledRegionName

output/java8/1.4.19/STGroup.java:481–486  ·  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

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

Callers 2

defineBlankRegionMethod · 0.95
defineRegionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected