public LanguageExpression GetUnqualifiedResourceId(ResourceMetadata resource)
 {
     return(ScopeHelper.FormatUnqualifiedResourceId(
                context,
                this,
                context.ResourceScopeData[resource],
                resource.TypeReference.FormatType(),
                GetResourceNameSegments(resource)));
 }
        public LanguageExpression GetUnqualifiedResourceId(ResourceSymbol resourceSymbol)
        {
            var typeReference = EmitHelpers.GetTypeReference(resourceSymbol);

            return(ScopeHelper.FormatUnqualifiedResourceId(
                       context,
                       this,
                       context.ResourceScopeData[resourceSymbol],
                       typeReference.FullyQualifiedType,
                       GetResourceNameSegments(resourceSymbol, typeReference)));
        }