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

            Ordinal       = ordinal;
            Flags         = flags;
            FileSpan      = span;
            InstructionId = instructionId;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public NonRemappableRegion(SourceFileSpan span, int lineDelta, bool isExceptionRegion)
 {
     Span              = span;
     LineDelta         = lineDelta;
     IsExceptionRegion = isExceptionRegion;
 }
Exemplo n.º 4
0
 public ActiveStatement WithFileSpan(SourceFileSpan span)
 => new(Ordinal, Flags, span, InstructionId);
Exemplo n.º 5
0
 public NonRemappableRegion WithNewSpan(SourceFileSpan newSpan)
 => new(OldSpan, newSpan, IsExceptionRegion);
Exemplo n.º 6
0
 public NonRemappableRegion(SourceFileSpan oldSpan, SourceFileSpan newSpan, bool isExceptionRegion)
 {
     OldSpan           = oldSpan;
     NewSpan           = newSpan;
     IsExceptionRegion = isExceptionRegion;
 }