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

Side by Side Diff: third_party/chrome/tools/json_schema_compiler/code.py

Issue 12300042: Update idlsync.py to pull in dependencies required for chrome api generation. (Closed) Base URL: git://github.com/dart-lang/bleeding_edge.git@master
Patch Set: From another checkout Created 7 years, 10 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
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 class Code(object): 5 class Code(object):
6 """A convenience object for constructing code. 6 """A convenience object for constructing code.
7 7
8 Logically each object should be a block of code. All methods except |Render| 8 Logically each object should be a block of code. All methods except |Render|
9 and |IsEmpty| return self. 9 and |IsEmpty| return self.
10 """ 10 """
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 """Renders Code as a string. 130 """Renders Code as a string.
131 """ 131 """
132 return '\n'.join([l.value for l in self._code]) 132 return '\n'.join([l.value for l in self._code])
133 133
134 class Line(object): 134 class Line(object):
135 """A line of code. 135 """A line of code.
136 """ 136 """
137 def __init__(self, value, substitute=True): 137 def __init__(self, value, substitute=True):
138 self.value = value 138 self.value = value
139 self.substitute = substitute 139 self.substitute = substitute
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698