scripts
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
|
||||
namespace System.Text.RegularExpressions.Syntax
|
||||
{
|
||||
// Token: 0x020002E6 RID: 742
|
||||
internal class PositionAssertion : Expression
|
||||
{
|
||||
// Token: 0x06001AF1 RID: 6897 RVA: 0x000632A0 File Offset: 0x000614A0
|
||||
public PositionAssertion(Position pos)
|
||||
{
|
||||
this.pos = pos;
|
||||
}
|
||||
|
||||
// Token: 0x1700083A RID: 2106
|
||||
// (get) Token: 0x06001AF2 RID: 6898 RVA: 0x000632B0 File Offset: 0x000614B0
|
||||
// (set) Token: 0x06001AF3 RID: 6899 RVA: 0x000632B8 File Offset: 0x000614B8
|
||||
public Position Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.pos;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.pos = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001AF4 RID: 6900 RVA: 0x000632C4 File Offset: 0x000614C4
|
||||
public override void Compile(ICompiler cmp, bool reverse)
|
||||
{
|
||||
cmp.EmitPosition(this.pos);
|
||||
}
|
||||
|
||||
// Token: 0x06001AF5 RID: 6901 RVA: 0x000632D4 File Offset: 0x000614D4
|
||||
public override void GetWidth(out int min, out int max)
|
||||
{
|
||||
min = (max = 0);
|
||||
}
|
||||
|
||||
// Token: 0x06001AF6 RID: 6902 RVA: 0x000632EC File Offset: 0x000614EC
|
||||
public override bool IsComplex()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x06001AF7 RID: 6903 RVA: 0x000632F0 File Offset: 0x000614F0
|
||||
public override AnchorInfo GetAnchorInfo(bool revers)
|
||||
{
|
||||
switch (this.pos)
|
||||
{
|
||||
case Position.StartOfString:
|
||||
case Position.StartOfLine:
|
||||
case Position.StartOfScan:
|
||||
return new AnchorInfo(this, 0, 0, this.pos);
|
||||
default:
|
||||
return new AnchorInfo(this, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040015BF RID: 5567
|
||||
private Position pos;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user