internal static IList <string> GetTextExpressionNamespaces(object root, out IList <AssemblyReference> references) { if (NamespaceHelper.ShouldUsePropertiesForImplementation(root)) { references = TextExpression.GetReferencesForImplementation(root); return(TextExpression.GetNamespacesForImplementation(root)); } else { references = TextExpression.GetReferences(root); return(TextExpression.GetNamespaces(root)); } }