فهرست منبع

[cpp] Remove no_simplification meta from cpp files

hughsando 9 سال پیش
والد
کامیت
81183db701
2فایلهای تغییر یافته به همراه3 افزوده شده و 12 حذف شده
  1. 3 7
      std/cpp/ConstPointer.hx
  2. 0 5
      std/cpp/Pointer.hx

+ 3 - 7
std/cpp/ConstPointer.hx

@@ -28,7 +28,6 @@ extern class ConstPointer<T>
    // Use value or ref to get dereferenced value
    public var ptr:Star<T>;
 
-   @:analyzer(no_simplification)
    public var value(get,never):T;
 
    // Typecast to non-const
@@ -37,8 +36,7 @@ extern class ConstPointer<T>
    // const version
    public var constRaw(get,never):RawConstPointer<T>;
 
-   @:analyzer(no_simplification)
-   public function get_value() : T;
+   public function get_value() : Reference<T>;
 
    public function get_constRaw() : RawConstPointer<T>;
    public function get_raw() : RawPointer<T>;
@@ -59,13 +57,11 @@ extern class ConstPointer<T>
    public function reinterpret<Other>():Pointer<Other>;
    public function rawCast<Other>():RawPointer<Other>;
 
-   @:analyzer(no_simplification)
-   public function at(inIndex:Int):T;
+   public function at(inIndex:Int):Reference<T>;
 
    public function inc():ConstPointer<T>;
    public function dec():ConstPointer<T>;
-   @:analyzer(no_simplification)
-   public function postIncVal():T;
+   public function postIncVal():Reference<T>;
    public function incBy(inT:Int):ConstPointer<T>;
    public function add(inT:Int):ConstPointer<T>;
 

+ 0 - 5
std/cpp/Pointer.hx

@@ -24,15 +24,11 @@
 @:coreType
 extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T>
 {
-   @:analyzer(no_simplification)
    public var ref(get,set):Reference<T>;
 
-   @:analyzer(no_simplification)
    public function get_ref() : Reference<T>;
-   @:analyzer(no_simplification)
    public function set_ref(t:T) : Reference<T>;
 
-   @:analyzer(no_simplification)
    public function setAt(inIndex:Int, value:T):Void;
 
    public static function fromRaw<T>(ptr:RawPointer<T>) : Pointer<T>;
@@ -65,7 +61,6 @@ extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T>
    override public function incBy(inT:Int):Pointer<T>;
    override public function add(inT:Int):Pointer<T>;
 
-   @:analyzer(no_simplification)
    public function postIncRef():Reference<T>;
 
    public function destroy():Void;