Exemplo n.º 1
0
 public IndexAssign(Expression target, IndexSpec indexSpec, Operator op, Expression expression,
                    Position start = new Position(), Position end = new Position()) : base(start, end)
 {
     this.target     = target;
     this.indexSpec  = indexSpec;
     this.op         = op;
     this.expression = expression;
 }
Exemplo n.º 2
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) => null;
Exemplo n.º 3
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) =>
 null;     // TODO: Actually this should be allowed
Exemplo n.º 4
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) =>
 ReferencedType(context).AllowedIndexAccess(context, indexSpec);
Exemplo n.º 5
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) =>
 aliasedType.AllowedIndexAccess(declaredModule, indexSpec);
Exemplo n.º 6
0
 /// <summary>
 /// Check if index access is allowed for this type.
 /// </summary>
 public virtual IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) => null;
Exemplo n.º 7
0
 public IndexGet(Expression target, IndexSpec indexSpec, Position start = new Position(),
                 Position end = new Position()) : base(start, end)
 {
     this.target    = target;
     this.indexSpec = indexSpec;
 }