File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed
analysis/examples/example-project/src/syntax Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,23 @@ namespace SomeModule {
46
46
}
47
47
}
48
48
49
+ // Decorators and classes
50
+ function someDecorator ( ) {
51
+ return function (
52
+ target : any ,
53
+ propertyKey : string ,
54
+ descriptor : PropertyDescriptor
55
+ ) {
56
+ console . log ( "first(): called" ) ;
57
+ } ;
58
+ }
59
+
60
+ class SomeClass {
61
+ @someDecorator ( ) doStuff ( ) {
62
+ return 123 ;
63
+ }
64
+ }
65
+
49
66
// Strings
50
67
let interpolated = `${ numberBinding } ${ "123" } ` ;
51
68
@@ -70,3 +87,6 @@ let jsx = (
70
87
{ "Hello" }
71
88
</ div >
72
89
) ;
90
+ function Property ( ) {
91
+ throw new Error ( "Function not implemented." ) ;
92
+ }
Original file line number Diff line number Diff line change 308
308
"match" : " (%%?|@@?)([A-Za-z_][A-Za-z0-9_\\ .]*)" ,
309
309
"captures" : {
310
310
"1" : {
311
- "name" : " storage.modifier punctuation.definition.annotation "
311
+ "name" : " punctuation.decorator "
312
312
},
313
313
"2" : {
314
314
"patterns" : [
327
327
"name" : " invalid.deprecated"
328
328
},
329
329
"2" : {
330
- "name" : " variable.annotation "
330
+ "name" : " entity.name.function "
331
331
}
332
332
}
333
333
},
334
334
{
335
335
"match" : " [A-Za-z_][A-Za-z0-9_\\ .]*" ,
336
- "name" : " variable.annotation "
336
+ "name" : " entity.name.function "
337
337
}
338
338
]
339
339
}
You can’t perform that action at this time.
0 commit comments