src/NFun/SyntaxParsing/Parser.cs
/// <summary>
/// Read anonymous equation. Throws if at least one other equation exists
/// </summary>
Read anonymous equation. Throws if at least one other equation exists
Read anonymous equation . Throws if at least one other equation exists
private void ReadAnonymousEquation(ISyntaxNode e) {
        if (_equationNames.Any())
        {
            if (_startOfTheLine && _hasAnonymousEquation)
                throw ErrorFactory.OnlyOneAnonymousExpressionAllowed(_exprStartPosition, e, _flow.Current);
            else
                throw ErrorFactory.UnexpectedExpression(e);
        }
        if (!_startOfTheLine)
            throw ErrorFactory.AnonymousExpressionHasToStartFromNewLine(_exprStartPosition, e, _flow.Current);
        var equation = SyntaxNodeFactory.Equation(AnonymousEquationId,e,_exprStartPosition, _attributes);
        _hasAnonymousEquation = true;
        _equationNames.Add(equation.Id);
        _nodes.Add(equation);
    }
private void ReadAnonymousEquation ( ISyntaxNode e ) { if ( _equationNames . Any ( ) ) { if ( _startOfTheLine && _hasAnonymousEquation ) throw ErrorFactory . OnlyOneAnonymousExpressionAllowed ( _exprStartPosition , e , _flow . Current ) ; else throw ErrorFactory . UnexpectedExpression ( e ) ; } if ( ! _startOfTheLine ) throw ErrorFactory . AnonymousExpressionHasToStartFromNewLine ( _exprStartPosition , e , _flow . Current ) ; var equation = SyntaxNodeFactory . Equation ( AnonymousEquationId , e , _exprStartPosition , _attributes ) ; _hasAnonymousEquation = true ; _equationNames . Add ( equation . Id ) ; _nodes . Add ( equation ) ; }
Read anonymous equation.
Read anonymous equation .
//anonymous
e
ISyntaxNode