[PATCH for Dlang support] d: remove the @property attribute from

Adela Vais <[email protected]>
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <CAPk8xGcf4J1dMWGJG+exjXWWK=KkzEqydTaXPzchU=OWykULOA@mail.gmail.com>
 interface Lexer

D best practices is to not use it.

* data/skeletons/lalr1.d: Remove attribute.
---
 data/skeletons/lalr1.d | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/skeletons/lalr1.d b/data/skeletons/lalr1.d
index 9bbff20f..9e0095f3 100644
--- a/data/skeletons/lalr1.d
+++ b/data/skeletons/lalr1.d
@@ -50,18 +50,18 @@ public interface Lexer
   /**
    * Method to retrieve the beginning position of the last scanned token.
    * @@return the position at which the last scanned token starts.  */
-  @@property ]b4_position_type[ startPos ();
+  ]b4_position_type[ startPos ();

   /**
    * Method to retrieve the ending position of the last scanned token.
    * @@return the first position beyond the last scanned token.  */
-  @@property ]b4_position_type[ endPos ();
+  ]b4_position_type[ endPos ();

 ]])[
   /**
    * Method to retrieve the semantic value of the last scanned token.
    * @@return the semantic value of the last scanned token.  */
-  @@property ]b4_yystype[ semanticVal ();
+  ]b4_yystype[ semanticVal ();

   /**
    * Entry point for the scanner.  Returns the token identifier
corresponding
@@ -824,7 +824,7 @@ m4_popdef([b4_at_dollar])])dnl
   private final struct YYStack {
     private YYStackElement[] stack = [];

-    public final @@property ulong height()
+    public final ulong height()
     {
       return stack.length;
     }
-- 
2.17.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.