|
| 1 | +(p:Student) |
| 2 | +(p:Student { name: "John" }) |
| 3 | +(:`Student`) |
| 4 | +(:`Student` { name: "John"}) |
| 5 | + |
| 6 | +(p:Student:Teacher) |
| 7 | +(p:Student { name: "John" }:Teacher) |
| 8 | +(:`Student`:`Teacher`) |
| 9 | +(:`Student` { name: "John"}:`Teacher` { classes: "..." }) |
| 10 | + |
| 11 | +// no class names but still interesting cases |
| 12 | + |
| 13 | +(p { name: "John" }) |
| 14 | +({ name: "John" }) |
| 15 | +() |
| 16 | + |
| 17 | +---------------------------------------------------- |
| 18 | + |
| 19 | +[ |
| 20 | + ["punctuation", "("], |
| 21 | + "p", |
| 22 | + ["operator", ":"], |
| 23 | + ["class-name", "Student"], |
| 24 | + ["punctuation", ")"], |
| 25 | + ["punctuation", "("], |
| 26 | + "p", |
| 27 | + ["operator", ":"], |
| 28 | + ["class-name", "Student"], |
| 29 | + ["punctuation", "{"], |
| 30 | + " name", |
| 31 | + ["operator", ":"], |
| 32 | + ["string", "\"John\""], |
| 33 | + ["punctuation", "}"], |
| 34 | + ["punctuation", ")"], |
| 35 | + ["punctuation", "("], |
| 36 | + ["operator", ":"], |
| 37 | + ["class-name", "`Student`"], |
| 38 | + ["punctuation", ")"], |
| 39 | + ["punctuation", "("], |
| 40 | + ["operator", ":"], |
| 41 | + ["class-name", "`Student`"], |
| 42 | + ["punctuation", "{"], |
| 43 | + " name", |
| 44 | + ["operator", ":"], |
| 45 | + ["string", "\"John\""], |
| 46 | + ["punctuation", "}"], |
| 47 | + ["punctuation", ")"], |
| 48 | + |
| 49 | + ["punctuation", "("], |
| 50 | + "p", |
| 51 | + ["operator", ":"], |
| 52 | + ["class-name", "Student"], |
| 53 | + ["operator", ":"], |
| 54 | + ["class-name", "Teacher"], |
| 55 | + ["punctuation", ")"], |
| 56 | + ["punctuation", "("], |
| 57 | + "p", |
| 58 | + ["operator", ":"], |
| 59 | + ["class-name", "Student"], |
| 60 | + ["punctuation", "{"], |
| 61 | + " name", |
| 62 | + ["operator", ":"], |
| 63 | + ["string", "\"John\""], |
| 64 | + ["punctuation", "}"], |
| 65 | + ["operator", ":"], |
| 66 | + ["class-name", "Teacher"], |
| 67 | + ["punctuation", ")"], |
| 68 | + ["punctuation", "("], |
| 69 | + ["operator", ":"], |
| 70 | + ["class-name", "`Student`"], |
| 71 | + ["operator", ":"], |
| 72 | + ["class-name", "`Teacher`"], |
| 73 | + ["punctuation", ")"], |
| 74 | + ["punctuation", "("], |
| 75 | + ["operator", ":"], |
| 76 | + ["class-name", "`Student`"], |
| 77 | + ["punctuation", "{"], |
| 78 | + " name", |
| 79 | + ["operator", ":"], |
| 80 | + ["string", "\"John\""], |
| 81 | + ["punctuation", "}"], |
| 82 | + ["operator", ":"], |
| 83 | + ["class-name", "`Teacher`"], |
| 84 | + ["punctuation", "{"], |
| 85 | + " classes", |
| 86 | + ["operator", ":"], |
| 87 | + ["string", "\"...\""], |
| 88 | + ["punctuation", "}"], |
| 89 | + ["punctuation", ")"], |
| 90 | + |
| 91 | + ["comment", "// no class names but still interesting cases"], |
| 92 | + |
| 93 | + ["punctuation", "("], |
| 94 | + "p ", |
| 95 | + ["punctuation", "{"], |
| 96 | + " name", |
| 97 | + ["operator", ":"], |
| 98 | + ["string", "\"John\""], |
| 99 | + ["punctuation", "}"], |
| 100 | + ["punctuation", ")"], |
| 101 | + ["punctuation", "("], |
| 102 | + ["punctuation", "{"], |
| 103 | + " name", |
| 104 | + ["operator", ":"], |
| 105 | + ["string", "\"John\""], |
| 106 | + ["punctuation", "}"], |
| 107 | + ["punctuation", ")"], |
| 108 | + ["punctuation", "("], |
| 109 | + ["punctuation", ")"] |
| 110 | +] |
| 111 | + |
| 112 | +---------------------------------------------------- |
| 113 | + |
| 114 | +Checks for class names. |
0 commit comments