public override void WrapStatementsInBlockIfNeeded(MemberReferenceExpression node, IUpdateCollector<LexicalInfo> updateCollector)
 {
     if (!this.IsInsideBlock(node))
     {
         Statement statement = BooExtensions.FindRootStatement(node);
         updateCollector.Insert(BooExtensions.SourcePosition(BooExtensions.FindExpressionRoot(statement)), "{ ", node.get_LexicalInfo(), null).InclusiveRange = false;
         updateCollector.Insert(new SourcePosition(statement.get_EndSourceLocation().get_Line(), statement.get_EndSourceLocation().get_Column() + 1), " }", node.get_LexicalInfo(), null);
     }
 }
Exemplo n.º 2
0
 public override void WrapStatementsInBlockIfNeeded(MemberReferenceExpression node, IUpdateCollector <LexicalInfo> updateCollector)
 {
     if (!this.IsInsideBlock(node))
     {
         Statement statement = node.FindRootStatement();
         updateCollector.Insert(statement.FindExpressionRoot().SourcePosition(), "{ ", node.LexicalInfo, null).InclusiveRange = false;
         updateCollector.Insert(new SourcePosition(statement.EndSourceLocation.Line, statement.EndSourceLocation.Column + 1), " }", node.LexicalInfo, null);
     }
 }