forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lasekar/test2' of https://github.com/Priya91/corefx
Conflicts: src/System.Xml.XDocument/System.Xml.XDocument.csproj
- Loading branch information
Showing
29 changed files
with
10,566 additions
and
9,967 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/System.Xml.XDocument/System/Xml/Linq/BaseUriAnnotation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Xml; | ||
using CultureInfo = System.Globalization.CultureInfo; | ||
using Debug = System.Diagnostics.Debug; | ||
using IEnumerable = System.Collections.IEnumerable; | ||
using SuppressMessageAttribute = System.Diagnostics.CodeAnalysis.SuppressMessageAttribute; | ||
using Enumerable = System.Linq.Enumerable; | ||
using IComparer = System.Collections.IComparer; | ||
using IEqualityComparer = System.Collections.IEqualityComparer; | ||
using StringBuilder = System.Text.StringBuilder; | ||
using Encoding = System.Text.Encoding; | ||
using Interlocked = System.Threading.Interlocked; | ||
using System.Reflection; | ||
|
||
namespace System.Xml.Linq | ||
{ | ||
class BaseUriAnnotation | ||
{ | ||
internal string baseUri; | ||
|
||
public BaseUriAnnotation(string baseUri) | ||
{ | ||
this.baseUri = baseUri; | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
src/System.Xml.XDocument/System/Xml/Linq/LineInfoAnnotation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Xml; | ||
using CultureInfo = System.Globalization.CultureInfo; | ||
using Debug = System.Diagnostics.Debug; | ||
using IEnumerable = System.Collections.IEnumerable; | ||
using SuppressMessageAttribute = System.Diagnostics.CodeAnalysis.SuppressMessageAttribute; | ||
using Enumerable = System.Linq.Enumerable; | ||
using IComparer = System.Collections.IComparer; | ||
using IEqualityComparer = System.Collections.IEqualityComparer; | ||
using StringBuilder = System.Text.StringBuilder; | ||
using Encoding = System.Text.Encoding; | ||
using Interlocked = System.Threading.Interlocked; | ||
using System.Reflection; | ||
|
||
namespace System.Xml.Linq | ||
{ | ||
/// <summary> | ||
/// Instance of this class is used as an annotation on any node | ||
/// for which we want to store its line information. | ||
/// Note: on XElement nodes this annotation stores the line info | ||
/// for the element start tag. The matching end tag line info | ||
/// if present is stored using the LineInfoEndElementAnnotation | ||
/// instance annotation. | ||
/// </summary> | ||
class LineInfoAnnotation | ||
{ | ||
internal int lineNumber; | ||
internal int linePosition; | ||
|
||
public LineInfoAnnotation(int lineNumber, int linePosition) | ||
{ | ||
this.lineNumber = lineNumber; | ||
this.linePosition = linePosition; | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/System.Xml.XDocument/System/Xml/Linq/LineInfoEndElementAnnotation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Xml; | ||
using CultureInfo = System.Globalization.CultureInfo; | ||
using Debug = System.Diagnostics.Debug; | ||
using IEnumerable = System.Collections.IEnumerable; | ||
using SuppressMessageAttribute = System.Diagnostics.CodeAnalysis.SuppressMessageAttribute; | ||
using Enumerable = System.Linq.Enumerable; | ||
using IComparer = System.Collections.IComparer; | ||
using IEqualityComparer = System.Collections.IEqualityComparer; | ||
using StringBuilder = System.Text.StringBuilder; | ||
using Encoding = System.Text.Encoding; | ||
using Interlocked = System.Threading.Interlocked; | ||
using System.Reflection; | ||
|
||
namespace System.Xml.Linq | ||
{ | ||
/// <summary> | ||
/// Instance of this class is used as an annotation on XElement nodes | ||
/// if that element is not empty element and we want to store the line info | ||
/// for its end element tag. | ||
/// </summary> | ||
class LineInfoEndElementAnnotation : LineInfoAnnotation | ||
{ | ||
public LineInfoEndElementAnnotation(int lineNumber, int linePosition) | ||
: base(lineNumber, linePosition) | ||
{ } | ||
} | ||
} |
Oops, something went wrong.