~eda-qa/leaflang/cpp

« back to all changes in this revision

Viewing changes to src/lang/expression_typer/fields.cpp

  • Committer: edA-qa mort-ora-y
  • Date: 2017-08-19 06:03:00 UTC
  • mfrom: (100.1.22 misc)
  • Revision ID: eda-qa@disemia.com-20170819060300-209dwd5884343mi0
merging miscelaneous changes, mainly platform improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
                
335
335
                auto sf = make_shared<expr_special_field>();
336
336
                sf->field = expr_special_field::f_array_size;
337
 
                sf->base = field->base; //TODO: actually need conversion to array?
338
 
                auto cl = sf->base->type.extr();
339
 
                cl.lvalue = false;
340
 
                sf->base->type = cl; //TODO: see above
 
337
 
 
338
                auto unq = ctx.converter().convert_unqualified( field->base->type );
 
339
                sf->base = ctx.applicator().apply( unq, field->base );
 
340
                DEBUG( "Array", dump::get(field->base->type), dump::get(sf->base->type) );
341
341
                ctx.rewrite( field, sf );
342
342
                return sf;
343
343