summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-12-30 16:58:48 (GMT)
committerE.Z. Hart <hartez@users.noreply.github.com>2016-12-30 16:58:48 (GMT)
commit32dab1d3c7641688e9435be22297e092bcdb5ee6 (patch)
tree46679ada9e2610ea05aa68810a6a85a375e1955b /Xamarin.Forms.Core
parentefc1e93f8156df8e84605b118a2f455b8dcf36ab (diff)
downloadxamarin-forms-32dab1d3c7641688e9435be22297e092bcdb5ee6.zip
xamarin-forms-32dab1d3c7641688e9435be22297e092bcdb5ee6.tar.gz
xamarin-forms-32dab1d3c7641688e9435be22297e092bcdb5ee6.tar.bz2
[XamlC] detect duplicate x:Name at compile time (#655)
* [XamlC] detect duplicate x:Name at compile time * invoking methods with the right arguments produces better results
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Element.cs1
-rw-r--r--Xamarin.Forms.Core/Internals/INameScope.cs3
-rw-r--r--Xamarin.Forms.Core/Internals/NameScope.cs1
3 files changed, 4 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Element.cs b/Xamarin.Forms.Core/Element.cs
index 19d7d85..d0f713e 100644
--- a/Xamarin.Forms.Core/Element.cs
+++ b/Xamarin.Forms.Core/Element.cs
@@ -280,6 +280,7 @@ namespace Xamarin.Forms
namescope.RegisterName(name, scopedElement);
}
+ [Obsolete]
void INameScope.RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo)
{
INameScope namescope = GetNameScope();
diff --git a/Xamarin.Forms.Core/Internals/INameScope.cs b/Xamarin.Forms.Core/Internals/INameScope.cs
index ca52060..6485527 100644
--- a/Xamarin.Forms.Core/Internals/INameScope.cs
+++ b/Xamarin.Forms.Core/Internals/INameScope.cs
@@ -1,3 +1,4 @@
+using System;
using System.Xml;
namespace Xamarin.Forms.Internals
@@ -6,7 +7,7 @@ namespace Xamarin.Forms.Internals
{
object FindByName(string name);
void RegisterName(string name, object scopedElement);
- void RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo);
void UnregisterName(string name);
+ [Obsolete]void RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo);
}
} \ No newline at end of file
diff --git a/Xamarin.Forms.Core/Internals/NameScope.cs b/Xamarin.Forms.Core/Internals/NameScope.cs
index b29534b..7bb5ff5 100644
--- a/Xamarin.Forms.Core/Internals/NameScope.cs
+++ b/Xamarin.Forms.Core/Internals/NameScope.cs
@@ -26,6 +26,7 @@ namespace Xamarin.Forms.Internals
_names[name] = scopedElement;
}
+ [Obsolete]
void INameScope.RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo)
{
try