예제 #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;
 }
예제 #2
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) => null;
예제 #3
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) =>
 null;     // TODO: Actually this should be allowed
예제 #4
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) =>
 ReferencedType(context).AllowedIndexAccess(context, indexSpec);
예제 #5
0
 public override IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) =>
 aliasedType.AllowedIndexAccess(declaredModule, indexSpec);
예제 #6
0
 /// <summary>
 /// Check if index access is allowed for this type.
 /// </summary>
 public virtual IIndexAccessEmitter AllowedIndexAccess(ModuleContext context, IndexSpec indexSpec) => null;
예제 #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;
 }