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); } }