src/NFun/Tic/GraphBuilder.cs
/// <summary>
/// Returns already exists syntax node id, or creates new one with empty constraints
/// </summary>
Returns already exists syntax node id, or creates new one with empty constraints
Returns already exists syntax node id or creates new one with empty constraints
[MethodImpl(MethodImplOptions.AggressiveInlining)]
    private TicNode GetOrCreateNode(int id) {
        var alreadyExists = _syntaxNodes.GetOrEnlarge(id);
        if (alreadyExists != null)
            return alreadyExists;
        var res = TicNode.CreateSyntaxNode(id, new ConstrainsState(), true);
        _syntaxNodes[id] = res;
        return res;
    }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] private TicNode GetOrCreateNode ( int id ) { var alreadyExists = _syntaxNodes . GetOrEnlarge ( id ) ; if ( alreadyExists != null ) return alreadyExists ; var res = TicNode . CreateSyntaxNode ( id , new ConstrainsState ( ) , true ) ; _syntaxNodes [ id ] = res ; return res ; }
Returns already exists syntax node id, or creates new one with empty constraints
Returns already exists syntax node id or creates new one with empty constraints
id
int