Skip to content
This repository
Browse code

Switched to warnings instead of errors for out of order property decl…

…arations.
  • Loading branch information...
commit 912e5bb258ef6a98e12bceeb7048263363257ac4 1 parent c693cfe
Adam Moore authored
2  bin/const.py
... ... @@ -1,5 +1,5 @@
1 1 '''
2   -Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  2 +Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3 3 Code licensed under the BSD License:
4 4 http://developer.yahoo.net/yui/license.html
5 5 version: 1.0.0b1
2  bin/yuidoc.py
@@ -3,7 +3,7 @@
3 3 # vim: et sw=4 ts=4
4 4
5 5 '''
6   -Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  6 +Copyright (c) 2009, Yahoo! Inc. All rights reserved.
7 7 Code licensed under the BSD License:
8 8 http://developer.yahoo.net/yui/license.html
9 9 version: 1.0.0b1
2  bin/yuidoc_generate.py
@@ -3,7 +3,7 @@
3 3 # vim: et sw=4 ts=4
4 4
5 5 '''
6   -Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  6 +Copyright (c) 2009, Yahoo! Inc. All rights reserved.
7 7 Code licensed under the BSD License:
8 8 http://developer.yahoo.net/yui/license.html
9 9 version: 1.0.0b1
2  bin/yuidoc_highlight.py
@@ -3,7 +3,7 @@
3 3 # vim: et sw=4 ts=4
4 4
5 5 '''
6   -Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  6 +Copyright (c) 2009, Yahoo! Inc. All rights reserved.
7 7 Code licensed under the BSD License:
8 8 http://developer.yahoo.net/yui/license.html
9 9 version: 1.0.0b1
15 bin/yuidoc_parse.py
@@ -3,7 +3,7 @@
3 3 # vim: et sw=4 ts=4
4 4
5 5 '''
6   -Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  6 +Copyright (c) 2009, Yahoo! Inc. All rights reserved.
7 7 Code licensed under the BSD License:
8 8 http://developer.yahoo.net/yui/license.html
9 9 version: 1.0.0b1
@@ -649,7 +649,8 @@ def parseModule(tokenMap):
649 649 elif const.EVENT in tokenMap:
650 650 if not self.currentClass:
651 651 log.error("Error: @event tag found before @class was found.\n****\n")
652   - sys.exit()
  652 + self.currentClass = self.currentGlobal
  653 + # sys.exit()
653 654
654 655 c = self.data[const.CLASS_MAP][self.currentClass]
655 656 event = tokenMap[const.EVENT][0]
@@ -668,8 +669,9 @@ def parseModule(tokenMap):
668 669 elif const.PROPERTY in tokenMap:
669 670
670 671 if not self.currentClass:
671   - log.error("Error: @property tag found before @class was found.\n****\n")
672   - sys.exit()
  672 + log.warn("Error: @property tag found before @class was found.\n****\n")
  673 + self.currentClass = self.currentGlobal
  674 + #sys.exit()
673 675
674 676 c = self.data[const.CLASS_MAP][self.currentClass]
675 677 property = tokenMap[const.PROPERTY][0]
@@ -688,8 +690,9 @@ def parseModule(tokenMap):
688 690 elif const.CONFIG in tokenMap or const.ATTRIBUTE in tokenMap:
689 691
690 692 if not self.currentClass:
691   - log.error("Error: @config tag found before @class was found.\n****\n")
692   - sys.exit()
  693 + log.warn("Error: @config tag found before @class was found.\n****\n")
  694 + # sys.exit()
  695 + self.currentClass = self.currentGlobal
693 696
694 697 c = self.data[const.CLASS_MAP][self.currentClass]
695 698 if const.ATTRIBUTE in tokenMap:

0 comments on commit 912e5bb

Please sign in to comment.
Something went wrong with that request. Please try again.