Shuffling classes around
This commit is contained in:
parent
fa3cf52f10
commit
6343d282e9
8 changed files with 7 additions and 27 deletions
|
@ -1,21 +0,0 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace Microsoft.Extensions.ProjectModel
|
|
||||||
{
|
|
||||||
public static class DiagnosticMessageExtensions
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Returns true if <paramref name="messages"/> has at least one message with <see cref="DiagnosticMessageSeverity.Error"/>.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="messages">Sequence of <see cref="DiagnosticMessage"/> objects.</param>
|
|
||||||
/// <returns><c>true</c> if any messages is an error message, <c>false</c> otherwise.</returns>
|
|
||||||
public static bool HasErrors(this IEnumerable<DiagnosticMessage> messages)
|
|
||||||
{
|
|
||||||
return messages.Any(m => m.Severity == DiagnosticMessageSeverity.Error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -5,7 +5,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.Extensions.JsonParser.Sources;
|
using Microsoft.Extensions.JsonParser.Sources;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.ProjectModel.Utilities
|
namespace Microsoft.Extensions.ProjectModel.Files
|
||||||
{
|
{
|
||||||
internal static class NamedResourceReader
|
internal static class NamedResourceReader
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Extensions.JsonParser.Sources;
|
using Microsoft.Extensions.JsonParser.Sources;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.ProjectModel
|
namespace Microsoft.Extensions.ProjectModel.Files
|
||||||
{
|
{
|
||||||
public class PackIncludeEntry
|
public class PackIncludeEntry
|
||||||
{
|
{
|
|
@ -8,7 +8,7 @@ using System.Linq;
|
||||||
using Microsoft.Extensions.FileSystemGlobbing;
|
using Microsoft.Extensions.FileSystemGlobbing;
|
||||||
using Microsoft.Extensions.JsonParser.Sources;
|
using Microsoft.Extensions.JsonParser.Sources;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.ProjectModel
|
namespace Microsoft.Extensions.ProjectModel.Files
|
||||||
{
|
{
|
||||||
public class PatternGroup
|
public class PatternGroup
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@ using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Extensions.JsonParser.Sources;
|
using Microsoft.Extensions.JsonParser.Sources;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.ProjectModel
|
namespace Microsoft.Extensions.ProjectModel.Files
|
||||||
{
|
{
|
||||||
internal static class PatternsCollectionHelper
|
internal static class PatternsCollectionHelper
|
||||||
{
|
{
|
|
@ -6,9 +6,8 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Microsoft.Extensions.JsonParser.Sources;
|
using Microsoft.Extensions.JsonParser.Sources;
|
||||||
using Microsoft.Extensions.ProjectModel.Utilities;
|
|
||||||
|
|
||||||
namespace Microsoft.Extensions.ProjectModel
|
namespace Microsoft.Extensions.ProjectModel.Files
|
||||||
{
|
{
|
||||||
public class ProjectFilesCollection
|
public class ProjectFilesCollection
|
||||||
{
|
{
|
|
@ -4,6 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Microsoft.Extensions.ProjectModel.Files;
|
||||||
using Microsoft.Extensions.ProjectModel.Graph;
|
using Microsoft.Extensions.ProjectModel.Graph;
|
||||||
using Microsoft.Extensions.ProjectModel.Utilities;
|
using Microsoft.Extensions.ProjectModel.Utilities;
|
||||||
using NuGet.Frameworks;
|
using NuGet.Frameworks;
|
||||||
|
|
|
@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Extensions.JsonParser.Sources;
|
using Microsoft.Extensions.JsonParser.Sources;
|
||||||
|
using Microsoft.Extensions.ProjectModel.Files;
|
||||||
using Microsoft.Extensions.ProjectModel.Graph;
|
using Microsoft.Extensions.ProjectModel.Graph;
|
||||||
using NuGet.Frameworks;
|
using NuGet.Frameworks;
|
||||||
using NuGet.Versioning;
|
using NuGet.Versioning;
|
||||||
|
|
Loading…
Reference in a new issue