System.Text.RegularExpressions.RegexCompiler.AddBacktrackNote C# (CSharp) Method

AddBacktrackNote() private method

private AddBacktrackNote ( int flags, Label l, int codepos ) : int
flags int
l System.Reflection.Emit.Label
codepos int
return int
        internal int AddBacktrackNote(int flags, Label l, int codepos) {
            if (_notes == null || _notecount >= _notes.Length) {
                BacktrackNote[] newnotes = new BacktrackNote[_notes == null ? 16 : _notes.Length * 2];
                if (_notes != null)
                    System.Array.Copy(_notes, 0, newnotes, 0, _notecount);
                _notes = newnotes;
            }

            _notes[_notecount] = new BacktrackNote(flags, l, codepos);

            return _notecount++;
        }