bug fix #1199
This commit is contained in:
parent
808f1eb150
commit
29d80edb56
|
|
@ -3270,9 +3270,9 @@ new_expr
|
|||
var typename = "AnonymousType#"+Guid();
|
||||
var type = new named_type_reference(typename,@1);
|
||||
|
||||
// node new_expr - for code generation
|
||||
// node new_expr - for code generation of new node
|
||||
var ne = new new_expr(type, new expression_list(exprs), @$);
|
||||
// node unnamed_type_object - for formatting
|
||||
// node unnamed_type_object - for formatting and code generation (new node and Anonymous class)
|
||||
$$ = new unnamed_type_object(l, true, ne, @$);
|
||||
}
|
||||
;
|
||||
|
|
|
|||
|
|
@ -217,5 +217,6 @@ script=
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ namespace SyntaxVisitors.SugarVisitors
|
|||
|
||||
//var sug = new sugared_expression(tup, mc, tup.source_context); - нет никакой семантической проверки - всё - на уровне синтаксиса!
|
||||
|
||||
ReplaceUsingParent(tup, mc);
|
||||
//ReplaceUsingParent(tup, mc); - исправление #1199. Оказывается, ReplaceUsingParent и Replace не эквивалентны
|
||||
Replace(tup, mc);
|
||||
visit(mc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue