-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathObjectModel.cs
More file actions
44 lines (37 loc) · 1.26 KB
/
ObjectModel.cs
File metadata and controls
44 lines (37 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using Microsoft.CodeAnalysis.CSharp;
using System;
using System.Collections.Generic;
using System.Text;
namespace ObjectInitializerGenerator
{
public class ObjectModel
{
public ObjectModel()
{
Children = new List<ObjectModel>();
}
public List<ObjectModel> Children { get; set; }
/// <summary>
/// The syntatic kind of the token, ClassDeclaration or PropertyDeclaration
/// </summary>
///
public SyntaxKind TokenType { get; set; }
/// <summary>
/// The syntatic kind of the node, GenericName, PredefinedType, ArrayType
/// </summary>
///
public SyntaxKind NodeType { get; set; }
/// <summary>
/// Class name in case the type is a class or Property Name in case the type is a property
/// </summary>
public string SyntaxName { get; set; } // testint
/// <summary>
/// The type of the property inside of the class
/// </summary>
public string PropertyType { get; set; } // int, byte[], string etc..
/// <summary>
/// What is the type in the generic list or array ? byte, string, int etc...
/// </summary>
public string GenericType { get; set; }
}
}