Ejemplo n.º 1
0
func NominalWrapping(childExpression Expression, nominalType typegraph.TGTypeDecl, basis compilergraph.GraphNode) Expression {
	return &NominalWrappingNode{
		expressionBase{domBase{basis}},
		childExpression,
		nominalType.GetTypeReference(),
		nominalType.GetTypeReference(),
		true,
	}
}
Ejemplo n.º 2
0
// GetStaticTypePath returns the global path for the given defined type.
func (p Pather) GetStaticTypePath(typedecl typegraph.TGTypeDecl, referenceType typegraph.TypeReference) string {
	instanceTypeRef := typedecl.GetTypeReference().TransformUnder(referenceType)
	return p.TypeReferenceCall(instanceTypeRef)
}