Example #1
0
        public ActiveStatement(int ordinal, ActiveStatementFlags flags, SourceFileSpan span, ManagedInstructionId instructionId)
        {
            Debug.Assert(ordinal >= 0);

            Ordinal       = ordinal;
            Flags         = flags;
            FileSpan      = span;
            InstructionId = instructionId;
        }
Example #2
0
        public ActiveStatement(int ordinal, ActiveStatementFlags flags, SourceFileSpan span, ManagedInstructionId instructionId)
        {
            Debug.Assert(ordinal >= 0);

            Ordinal       = ordinal;
            Flags         = flags;
            FileSpan      = span;
            InstructionId = instructionId;

            // IsStale implies !IsMethodUpToDate
            Debug.Assert(!IsStale || !IsMethodUpToDate);
        }
Example #3
0
 public NonRemappableRegion(SourceFileSpan span, int lineDelta, bool isExceptionRegion)
 {
     Span              = span;
     LineDelta         = lineDelta;
     IsExceptionRegion = isExceptionRegion;
 }
Example #4
0
 public ActiveStatement WithFileSpan(SourceFileSpan span)
 => new(Ordinal, Flags, span, InstructionId);
 public NonRemappableRegion WithNewSpan(SourceFileSpan newSpan)
 => new(OldSpan, newSpan, IsExceptionRegion);
 public NonRemappableRegion(SourceFileSpan oldSpan, SourceFileSpan newSpan, bool isExceptionRegion)
 {
     OldSpan           = oldSpan;
     NewSpan           = newSpan;
     IsExceptionRegion = isExceptionRegion;
 }