Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: tools/idl_parser/idl_log.py

Issue 13498002: Add WebIDL compliant parser plus tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up IDLNode, make members private Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ Error and information logging for IDL """ 5 """ Error and information logging for IDL """
6 6
7 # 7 #
8 # IDL Log 8 # IDL Log
9 # 9 #
10 # And IDLLog object provides a mechanism for capturing logging output 10 # And IDLLog object provides a mechanism for capturing logging output
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 self.capture = enable 50 self.capture = enable
51 51
52 def DrainLog(self): 52 def DrainLog(self):
53 out = self.log 53 out = self.log
54 self.log = [] 54 self.log = []
55 return out 55 return out
56 56
57 ErrOut = IDLLog('Error', sys.stderr) 57 ErrOut = IDLLog('Error', sys.stderr)
58 WarnOut = IDLLog('Warning', sys.stdout) 58 WarnOut = IDLLog('Warning', sys.stdout)
59 InfoOut = IDLLog('', sys.stdout) 59 InfoOut = IDLLog('', sys.stdout)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698