Skip to content
Browse files

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

…arations.
  • Loading branch information...
1 parent c693cfe commit 912e5bb258ef6a98e12bceeb7048263363257ac4 Adam Moore committed May 12, 2009
Showing with 13 additions and 10 deletions.
  1. +1 −1 bin/const.py
  2. +1 −1 bin/yuidoc.py
  3. +1 −1 bin/yuidoc_generate.py
  4. +1 −1 bin/yuidoc_highlight.py
  5. +9 −6 bin/yuidoc_parse.py
View
2 bin/const.py
@@ -1,5 +1,5 @@
'''
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.html
version: 1.0.0b1
View
2 bin/yuidoc.py
@@ -3,7 +3,7 @@
# vim: et sw=4 ts=4
'''
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.html
version: 1.0.0b1
View
2 bin/yuidoc_generate.py
@@ -3,7 +3,7 @@
# vim: et sw=4 ts=4
'''
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.html
version: 1.0.0b1
View
2 bin/yuidoc_highlight.py
@@ -3,7 +3,7 @@
# vim: et sw=4 ts=4
'''
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.html
version: 1.0.0b1
View
15 bin/yuidoc_parse.py
@@ -3,7 +3,7 @@
# vim: et sw=4 ts=4
'''
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.html
version: 1.0.0b1
@@ -649,7 +649,8 @@ def parseModule(tokenMap):
elif const.EVENT in tokenMap:
if not self.currentClass:
log.error("Error: @event tag found before @class was found.\n****\n")
- sys.exit()
+ self.currentClass = self.currentGlobal
+ # sys.exit()
c = self.data[const.CLASS_MAP][self.currentClass]
event = tokenMap[const.EVENT][0]
@@ -668,8 +669,9 @@ def parseModule(tokenMap):
elif const.PROPERTY in tokenMap:
if not self.currentClass:
- log.error("Error: @property tag found before @class was found.\n****\n")
- sys.exit()
+ log.warn("Error: @property tag found before @class was found.\n****\n")
+ self.currentClass = self.currentGlobal
+ #sys.exit()
c = self.data[const.CLASS_MAP][self.currentClass]
property = tokenMap[const.PROPERTY][0]
@@ -688,8 +690,9 @@ def parseModule(tokenMap):
elif const.CONFIG in tokenMap or const.ATTRIBUTE in tokenMap:
if not self.currentClass:
- log.error("Error: @config tag found before @class was found.\n****\n")
- sys.exit()
+ log.warn("Error: @config tag found before @class was found.\n****\n")
+ # sys.exit()
+ self.currentClass = self.currentGlobal
c = self.data[const.CLASS_MAP][self.currentClass]
if const.ATTRIBUTE in tokenMap:

0 comments on commit 912e5bb

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