1 //
2 // Copyright (c) 2010-2018 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 using System;
8 using System.Collections.Generic;
9 using System.Reflection;
10 
11 namespace Antmicro.Renode.PlatformDescription.Syntax
12 {
13     public class RegistrationInfo : IVisitable
14     {
RegistrationInfo(ReferenceValue register, Value registrationPoint)15         public RegistrationInfo(ReferenceValue register, Value registrationPoint)
16         {
17             Register = register;
18             RegistrationPoint = registrationPoint;
19         }
20 
Visit()21         public IEnumerable<object> Visit()
22         {
23             return new[] { Register, RegistrationPoint };
24         }
25 
26         public ReferenceValue Register { get; private set; }
27         public Value RegistrationPoint { get; private set; }
28         public ConstructorInfo Constructor { get; set; }
29         public object ConvertedValue { get; set; }
30         public Type RegistrationInterface { get; set; }
31     }
32 }
33