private bool StatementIsUnterminated(Expression expression)
            {
                switch (NodeType)
                {
                case Block:
                case Lambda:
                    return(false);

                case MemberInit:
                    return(true);
                }

                if (_statementTranslation.IsAssignment())
                {
                    return(true);
                }

                return(!(expression.IsComment() || _statementTranslation.IsTerminated()));
            }
Beispiel #2
0
 private bool EnsureTerminated() => _ensureTerminated && (_translation.IsTerminated() == false);