Skip to content

Commit

Permalink
Remove subnamespaces under Microsoft.OData.Core.UriParser - Related O…
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe-ms committed Apr 22, 2016
1 parent 9647e1e commit 1c4d117
Show file tree
Hide file tree
Showing 620 changed files with 1,692 additions and 2,728 deletions.
6 changes: 3 additions & 3 deletions src/Microsoft.OData.Core/AnnotationFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// </copyright>
//---------------------------------------------------------------------

using System.Diagnostics;
using System.Linq;

namespace Microsoft.OData.Core
{
using System.Diagnostics;
using System.Linq;

/// <summary>
/// Filter class to determine whether or not to read an annotation.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.OData.Core/AnnotationFilterPattern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Microsoft.OData.Core
{
using System;
using System.Diagnostics;
using System.Linq;

/// <summary>
/// Filter pattern class to determine whether an annotation name matches the pattern.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,21 +1015,6 @@
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\LiteralUtils.cs">
<Link>Microsoft\OData\Core\UriParser\LiteralUtils.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Metadata\AlternateKeysODataUriResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Metadata\AlternateKeysODataUriResolver.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Metadata\StringAsEnumResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Metadata\StringAsEnumResolver.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Metadata\ODataUriResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Metadata\ODataUriResolver.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Metadata\UnqualifiedODataUriResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Metadata\UnqualifiedODataUriResolver.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Metadata\UriEdmHelpers.cs">
<Link>Microsoft\OData\Core\UriParser\Metadata\UriEdmHelpers.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\NamedValue.cs">
<Link>Microsoft\OData\Core\UriParser\NamedValue.cs</Link>
</Compile>
Expand Down Expand Up @@ -1090,9 +1075,6 @@
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Parsers\OpenTypeMethods.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\OpenTypeMethods.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Metadata\PathParserModelUtils.cs">
<Link>Microsoft\OData\Core\UriParser\Metadata\PathParserModelUtils.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Parsers\PathReverser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\PathReverser.cs</Link>
</Compile>
Expand Down Expand Up @@ -1468,9 +1450,6 @@
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\UriQueryConstants.cs">
<Link>Microsoft\OData\Core\UriParser\UriQueryConstants.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\UriUtils.cs">
<Link>Microsoft\OData\Core\UriParser\UriUtils.cs</Link>
</Compile>
<Compile Include="$(ODataCrossTargettingSourcePath)\UriParser\Visitors\IPathSegmentTokenVisitor.cs">
<Link>Microsoft\OData\Core\UriParser\Visitors\IPathSegmentTokenVisitor.cs</Link>
</Compile>
Expand Down Expand Up @@ -1599,6 +1578,39 @@
<Compile Include="..\UriParser\FunctionSignatureWithReturnType.cs">
<Link>Microsoft\OData\Core\UriParser\FunctionSignatureWithReturnType.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\CustomUriLiteralParsers.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\CustomUriLiteralParsers.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\DefaultUriLiteralParser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\DefaultUriLiteralParser.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\IUriLiteralParser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\IUriLiteralParser.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\PathParserModelUtils.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\PathParserModelUtils.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\UriLiteralParsingException.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\UriLiteralParsingException.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\UriPrimitiveTypeParser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\UriPrimitiveTypeParser.cs</Link>
</Compile>
<Compile Include="..\UriParser\Resolver\AlternateKeysODataUriResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Resolver\AlternateKeysODataUriResolver.cs</Link>
</Compile>
<Compile Include="..\UriParser\Resolver\ODataUriResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Resolver\ODataUriResolver.cs</Link>
</Compile>
<Compile Include="..\UriParser\Resolver\StringAsEnumResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Resolver\StringAsEnumResolver.cs</Link>
</Compile>
<Compile Include="..\UriParser\Resolver\UnqualifiedODataUriResolver.cs">
<Link>Microsoft\OData\Core\UriParser\Resolver\UnqualifiedODataUriResolver.cs</Link>
</Compile>
<Compile Include="..\UriParser\UriEdmHelpers.cs">
<Link>Microsoft\OData\Core\UriParser\UriEdmHelpers.cs</Link>
</Compile>
<Compile Include="..\UriParser\Visitors\PathSegmentToResourcePathTranslator.cs">
<Link>Microsoft\OData\Core\UriParser\Visitors\PathSegmentToResourcePathTranslator.cs</Link>
</Compile>
Expand Down Expand Up @@ -1638,21 +1650,6 @@
<Compile Include="..\UriParser\CustomUriLiteralPrefixes.cs">
<Link>Microsoft\OData\Core\UriParser\CustomUriLiteralPrefixes.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\LiteralParsers\Common\IUriLiteralParser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\LiteralParsers\Common\IUriLiteralParser.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\LiteralParsers\Common\UriLiteralParsingException.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\LiteralParsers\Common\UriLiteralParsingException.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\LiteralParsers\DefaultUriLiteralParser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\LiteralParsers\DefaultUriLiteralParser.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\LiteralParsers\CustomUriLiteralParsers.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\LiteralParsers\CustomUriLiteralParsers.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\LiteralParsers\UriPrimitiveTypeParser.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\LiteralParsers\UriPrimitiveTypeParser.cs</Link>
</Compile>
<Compile Include="..\UriParser\Parsers\UriParserHelper.cs">
<Link>Microsoft\OData\Core\UriParser\Parsers\UriParserHelper.cs</Link>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace Microsoft.OData.Core.Evaluation
using Microsoft.OData.Core.JsonLight;
using Microsoft.OData.Core.Metadata;
using Microsoft.OData.Core.UriParser;
using Microsoft.OData.Core.UriParser.Semantic;
using Microsoft.OData.Edm;
#endregion

Expand Down Expand Up @@ -574,7 +573,7 @@ private Uri ComputeIdForContainment()
ODataResourceTypeContext.ODataResourceTypeContextWithModel typeContextWithModel = typeContext as ODataResourceTypeContext.ODataResourceTypeContextWithModel;
if (typeContextWithModel == null || typeContextWithModel.NavigationSourceEntityType.FindProperty(this.resourceMetadataContext.TypeContext.NavigationSourceName) == null)
{
uri = new Uri(Core.UriUtils.EnsureTaillingSlash(uri), parent.resourceMetadataContext.ActualEntityTypeName);
uri = new Uri(UriUtils.EnsureTaillingSlash(uri), parent.resourceMetadataContext.ActualEntityTypeName);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ namespace Microsoft.OData.Core.Evaluation
using System.Linq;
using System.Text;
using Microsoft.OData.Core.JsonLight;
using Microsoft.OData.Edm;
using Microsoft.OData.Edm.Values;
using Microsoft.OData.Core.Metadata;

#endregion

/// <summary>
Expand Down
4 changes: 1 addition & 3 deletions src/Microsoft.OData.Core/Evaluation/ODataEdmValueUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
namespace Microsoft.OData.Core.Evaluation
{
#region Namespaces
using System;

using System.Diagnostics;
using Microsoft.Spatial;
using Microsoft.OData.Edm;
using Microsoft.OData.Edm.Library;
using Microsoft.OData.Edm.Library.Values;
using Microsoft.OData.Edm.Values;
using ODataErrorStrings = Microsoft.OData.Core.Strings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace Microsoft.OData.Core.Evaluation
using System.Diagnostics;
using Microsoft.OData.Core.JsonLight;
using Microsoft.OData.Core.Metadata;
using Microsoft.OData.Core.UriParser;
using Microsoft.OData.Edm;

/// <summary>
Expand Down
11 changes: 4 additions & 7 deletions src/Microsoft.OData.Core/Evaluation/ODataUriBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@
// </copyright>
//---------------------------------------------------------------------

using System;
using System.Collections.Generic;
using Microsoft.OData.Edm.Values;

#if ASTORIA_CLIENT
namespace Microsoft.OData.Client
#else
namespace Microsoft.OData.Core.Evaluation
#endif
{
#region Namespaces
using System;
using System.Collections.Generic;
using Microsoft.OData.Edm;
using Microsoft.OData.Edm.Values;
#endregion

/// <summary>
/// Extensibility point for customizing how OData uri's are built.
/// </summary>
Expand Down
29 changes: 14 additions & 15 deletions src/Microsoft.OData.Core/Evaluation/UrlConvention.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
// </copyright>
//---------------------------------------------------------------------

#if ASTORIA_DESIGN
using System.Xml.Linq;
#endif
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Microsoft.OData.Edm;
using Microsoft.OData.Edm.Annotations;
using Microsoft.OData.Edm.Library;
using Microsoft.OData.Edm.Library.Annotations;
using Microsoft.OData.Edm.Library.Values;
using Microsoft.OData.Edm.Vocabularies;

#if ASTORIA_CLIENT
namespace Microsoft.OData.Client
#else
Expand All @@ -18,21 +32,6 @@ namespace Microsoft.OData.Service.Design
#endif
#endif
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
#if ASTORIA_DESIGN
using System.Xml.Linq;
#endif
using Microsoft.OData.Edm;
using Microsoft.OData.Edm.Annotations;
using Microsoft.OData.Edm.Vocabularies;
using Microsoft.OData.Edm.Library;
using Microsoft.OData.Edm.Library.Annotations;
using Microsoft.OData.Edm.Library.Values;

/// <summary>
/// Component for representing the url convention in use by the server, client, or codegen.
/// </summary>
Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.OData.Core/ExceptionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ namespace Microsoft.OData.Core
{
#region Namespaces
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.OData.Core;
using Microsoft.OData.Edm;

#endregion Namespaces

Expand Down
Loading

0 comments on commit 1c4d117

Please sign in to comment.