We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8867ed7 commit caa5f0bCopy full SHA for caa5f0b
hscript/Checker.hx
@@ -324,13 +324,18 @@ class CheckerTypes {
324
}
325
if( f.meta == null ) continue;
326
for( m in f.meta ) {
327
- if( m.name == ":op" && m.params != null && m.params.length == 1 ) {
328
- var op = switch( Tools.expr(m.params[0]) ) {
+ var op = null;
+ if( m.name == ":op" && m.params != null && m.params.length == 1 && m.params[0] != null ) {
329
+ op = switch( Tools.expr(m.params[0]) ) {
330
case EField(_): ".";
331
case EBinop(op,_,_): op;
332
case EArrayDecl([]): "[]";
- default: continue;
333
+ default: null;
334
335
+ }
336
+ if( m.name == ":arrayAccess" )
337
+ op = "[]";
338
+ if( op != null ) {
339
var ops = ta.ops.get(op);
340
if( ops == null ) {
341
ops = [];
0 commit comments