Skip to content

Commit eb5fe02

Browse files
committed
Аннотация убрана из базовых типов.
1 parent 7df3a85 commit eb5fe02

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/OneScript.Core/Types/BasicTypes.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public static class BasicTypes
1818
public static TypeDescriptor Undefined { get; }
1919
public static TypeDescriptor Type { get; }
2020
public static TypeDescriptor Null { get; }
21-
public static TypeDescriptor Annotation { get; }
2221

2322
/// <summary>
2423
/// Тип, устанавливаемый объектам, которые не задали свой тип
@@ -35,7 +34,6 @@ static BasicTypes()
3534
Undefined = new TypeDescriptor(typeof(BslUndefinedValue), "Неопределено", "Undefined");
3635
Type = new TypeDescriptor(typeof(BslTypeValue), "Тип", "Type");
3736
Null = new TypeDescriptor(typeof(BslNullValue), "Null", "Null");
38-
Annotation = new TypeDescriptor(typeof(BslAnnotationValue), "Аннотация", "Annotation");
3937
UnknownType = new TypeDescriptor(typeof(BslValue), "$UnknownType$", "$UnknownType$");
4038
}
4139
}

src/OneScript.Core/Values/BslAnnotationValue.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public BslAnnotationValue(string name) {
2525

2626
public List<BslAnnotationParameter> Parameters { get; } = new List<BslAnnotationParameter>();
2727

28-
public override TypeDescriptor SystemType => BasicTypes.Annotation;
29-
28+
3029
public override int CompareTo(BslValue other) {
3130
var msg = new BilingualString("Сравнение на больше/меньше для данного типа не поддерживается",
3231
"Comparison for less/greater is not supported for this type");

0 commit comments

Comments
 (0)