Skip to content

Commit c1ca28e

Browse files
committed
Added comments
1 parent 2f36d26 commit c1ca28e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

expand.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ def output_file(filename, output_comment, output_test):
1919
res.append('mod {}{{'.format(filename))
2020

2121
for line in f:
22-
if not output_test and line.strip()=='#[cfg(test)]':
22+
if not output_test and line.strip() == '#[cfg(test)]':
23+
# TODO
24+
# Find more better way.
2325
break
2426
if not output_comment and line.strip().startswith("//"):
27+
# TODO
28+
# Find more better way.
2529
continue
2630
res.append(line.rstrip())
2731

@@ -65,6 +69,7 @@ def output_file(filename, output_comment, output_test):
6569
output_data.extend(buf)
6670

6771
for i in output_list:
72+
# Modules that begin with 'internal' are for internal use, so they are not declared.
6873
if not i.startswith('internal'):
6974
output_data.append('use {}::*;'.format(i))
7075

0 commit comments

Comments
 (0)