-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathSymbolList.cs
59 lines (56 loc) · 1.69 KB
/
SymbolList.cs
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rubberduck.Parsing.Grammar;
namespace Rubberduck.Parsing
{
public static class SymbolList
{
public static readonly IReadOnlyList<string> ValueTypes = new[]
{
Tokens.Boolean,
Tokens.Byte,
Tokens.Currency,
Tokens.Date,
Tokens.Decimal,
Tokens.Double,
Tokens.Integer,
Tokens.Long,
Tokens.LongLong,
Tokens.LongPtr,
Tokens.Single,
Tokens.String,
Tokens.Variant,
};
public static readonly IReadOnlyList<string> BaseTypes = new[]
{
Tokens.Boolean.ToUpper(),
Tokens.Byte.ToUpper(),
Tokens.Currency.ToUpper(),
Tokens.Date.ToUpper(),
Tokens.Decimal.ToUpper(),
Tokens.Double.ToUpper(),
Tokens.Integer.ToUpper(),
Tokens.Long.ToUpper(),
Tokens.LongLong.ToUpper(),
Tokens.LongPtr.ToUpper(),
Tokens.Single.ToUpper(),
Tokens.String.ToUpper(),
Tokens.Variant.ToUpper(),
Tokens.Object.ToUpper(),
Tokens.Any.ToUpper()
};
public static readonly IDictionary<string, string> TypeHintToTypeName = new Dictionary<string, string>
{
{ "%", Tokens.Integer },
{ "&", Tokens.Long },
{ "^", Tokens.LongLong },
{ "@", Tokens.Currency },
{ "!", Tokens.Single },
{ "#", Tokens.Double },
{ "$", Tokens.String }
};
}
}