System.Linq.Expressions.Compiler.LabelInfo.Reference C# (CSharp) Method

Reference() private method

private Reference ( LabelScopeInfo block ) : void
block LabelScopeInfo
return void
        internal void Reference(LabelScopeInfo block)
        {
            _references.Add(block);
            if (_definitions.Count > 0)
            {
                ValidateJump(block);
            }
        }

Usage Example

        private LabelInfo ReferenceLabel(LabelTarget node)
        {
            LabelInfo result = EnsureLabel(node);

            result.Reference(_labelBlock);
            return(result);
        }