func (e *SwaggerResourceExpander) DoesExpand(ctx context.Context, currentItem *TreeNode) (bool, error) {
	e.ensureInitialized()
	if currentItem.ItemType == ResourceType {
		if currentItem.SwaggerResourceType != nil {
			return true, nil
		}
		resourceType := getResourceTypeForURL(ctx, currentItem.ExpandURL, e.ResourceTypes)
		if resourceType != nil {
			currentItem.SwaggerResourceType = resourceType // cache to avoid looking up in Expand
			return true, nil
		}
	}

	return false, nil
}
// DoesExpand checks if this is an RG
DoesExpand checks if this is an RG
// DoesExpand checks if this is an RG
func (e *SwaggerResourceExpander) DoesExpand(ctx context.Context, currentItem *TreeNode) (bool, error) {
	e.ensureInitialized()
	if currentItem.ItemType == ResourceType {
		if currentItem.SwaggerResourceType != nil {
			return true, nil
		}
		resourceType := getResourceTypeForURL(ctx, currentItem.ExpandURL, e.ResourceTypes)
		if resourceType != nil {
			currentItem.SwaggerResourceType = resourceType 
			return true, nil
		}
	}
	return false, nil
}
func ( e * SwaggerResourceExpander ) DoesExpand ( ctx context . Context , currentItem * TreeNode ) ( bool , error ) { e . ensureInitialized ( ) if currentItem . ItemType == ResourceType { if currentItem . SwaggerResourceType != nil { return true , nil } resourceType := getResourceTypeForURL ( ctx , currentItem . ExpandURL , e . ResourceTypes ) if resourceType != nil { currentItem . SwaggerResourceType = resourceType return true , nil } } return false , nil }
DoesExpand checks if this is an RG
DoesExpand checks if this is an RG
// cache to avoid looking up in Expand