Hash :
42b15463
Author :
Date :
2020-03-24T20:30:58
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
int a;
Foo b;
Foo @new_var;
Foo<Bar> c = null;
static Foo<(Bar, int)>[,,] d;
void Foo(Foo a, Bar<Foo> b, Bar[, ] c, Foo<(int, int)> d);
Bar<Foo> Abc => 0;
Bar<Foo>.FooBar<IFoo> Abc;
----------------------------------------------------
[
["class-name", [
["keyword", "int"]
]],
" a",
["punctuation", ";"],
["class-name", [
"Foo"
]],
" b",
["punctuation", ";"],
["class-name", [
"Foo"
]],
" @new_var",
["punctuation", ";"],
["class-name", [
"Foo",
["punctuation", "<"],
"Bar",
["punctuation", ">"]
]],
" c ",
["operator", "="],
["keyword", "null"],
["punctuation", ";"],
["keyword", "static"],
["class-name", [
"Foo",
["punctuation", "<"],
["punctuation", "("],
"Bar",
["punctuation", ","],
["keyword", "int"],
["punctuation", ")"],
["punctuation", ">"],
["punctuation", "["],
["punctuation", ","],
["punctuation", ","],
["punctuation", "]"]
]],
" d",
["punctuation", ";"],
["return-type", [
["keyword", "void"]
]],
["function", "Foo"],
["punctuation", "("],
["class-name", [
"Foo"
]],
" a",
["punctuation", ","],
["class-name", [
"Bar",
["punctuation", "<"],
"Foo",
["punctuation", ">"]
]],
" b",
["punctuation", ","],
["class-name", [
"Bar",
["punctuation", "["],
["punctuation", ","],
["punctuation", "]"]
]],
" c",
["punctuation", ","],
["class-name", [
"Foo",
["punctuation", "<"],
["punctuation", "("],
["keyword", "int"],
["punctuation", ","],
["keyword", "int"],
["punctuation", ")"],
["punctuation", ">"]
]],
" d",
["punctuation", ")"],
["punctuation", ";"],
["return-type", [
"Bar",
["punctuation", "<"],
"Foo",
["punctuation", ">"]
]],
" Abc ",
["operator", "=>"],
["number", "0"],
["punctuation", ";"],
["class-name", [
"Bar",
["punctuation", "<"],
"Foo",
["punctuation", ">"],
["punctuation", "."],
"FooBar",
["punctuation", "<"],
"IFoo",
["punctuation", ">"]
]],
" Abc",
["punctuation", ";"]
]
----------------------------------------------------
Checks for class names in variables and parameters.