From de7d37fb2b94d09066fbb0444b293ea2ad7387cf Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Thu, 23 Nov 2017 16:25:05 +0000 Subject: [PATCH] [ast] Store managed names for fields and properties. --- binder/Generators/AstGenerator.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/binder/Generators/AstGenerator.cs b/binder/Generators/AstGenerator.cs index 73f6f0d..c7c35bf 100644 --- a/binder/Generators/AstGenerator.cs +++ b/binder/Generators/AstGenerator.cs @@ -669,6 +669,8 @@ namespace Embeddinator.Generators var accessMask = (fieldInfo.Attributes & FieldAttributes.FieldAccessMask); field.Access = ConvertFieldAttributesToAccessSpecifier(accessMask); + ManagedNames[field] = $"{fieldInfo.DeclaringType.FullName}:{fieldInfo.Name}"; + return field; } @@ -701,6 +703,8 @@ namespace Embeddinator.Generators property.SetMethod.Namespace = property.Namespace; } + ManagedNames[property] = $"{propertyInfo.DeclaringType.FullName}:{propertyInfo.Name}"; + return property; } }