Shuffling classes around

This commit is contained in:
David Fowler 2015-10-17 08:55:06 -07:00
parent fa3cf52f10
commit 6343d282e9
8 changed files with 7 additions and 27 deletions

View file

@ -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);
}
}
}

View file

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.IO;
using Microsoft.Extensions.JsonParser.Sources;
namespace Microsoft.Extensions.ProjectModel.Utilities
namespace Microsoft.Extensions.ProjectModel.Files
{
internal static class NamedResourceReader
{

View file

@ -1,7 +1,7 @@
using System.Linq;
using Microsoft.Extensions.JsonParser.Sources;
namespace Microsoft.Extensions.ProjectModel
namespace Microsoft.Extensions.ProjectModel.Files
{
public class PackIncludeEntry
{

View file

@ -8,7 +8,7 @@ using System.Linq;
using Microsoft.Extensions.FileSystemGlobbing;
using Microsoft.Extensions.JsonParser.Sources;
namespace Microsoft.Extensions.ProjectModel
namespace Microsoft.Extensions.ProjectModel.Files
{
public class PatternGroup
{

View file

@ -7,7 +7,7 @@ using System.IO;
using System.Linq;
using Microsoft.Extensions.JsonParser.Sources;
namespace Microsoft.Extensions.ProjectModel
namespace Microsoft.Extensions.ProjectModel.Files
{
internal static class PatternsCollectionHelper
{

View file

@ -6,9 +6,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Microsoft.Extensions.JsonParser.Sources;
using Microsoft.Extensions.ProjectModel.Utilities;
namespace Microsoft.Extensions.ProjectModel
namespace Microsoft.Extensions.ProjectModel.Files
{
public class ProjectFilesCollection
{

View file

@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Extensions.ProjectModel.Files;
using Microsoft.Extensions.ProjectModel.Graph;
using Microsoft.Extensions.ProjectModel.Utilities;
using NuGet.Frameworks;

View file

@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Extensions.JsonParser.Sources;
using Microsoft.Extensions.ProjectModel.Files;
using Microsoft.Extensions.ProjectModel.Graph;
using NuGet.Frameworks;
using NuGet.Versioning;