示例#1
0
 def identifier(name):
     identifier = pydentifier.lower_underscore(name)
     if identifier in RUST_KEYWORDS:
         identifier = "{}_".format(identifier)
     return identifier
示例#2
0
 def get_step_handler_function_name(cls, step):
     return pydentifier.lower_underscore(step.title, prefix=step.clause)
示例#3
0
 def get_test_case_function_name(cls, scenario):
     return pydentifier.lower_underscore(scenario.title, prefix='test')
示例#4
0
文件: svd2regs.py 项目: alevy/tock
 def identifier(name):
     identifier = pydentifier.lower_underscore(name)
     if identifier in RUST_KEYWORDS:
         identifier = "{}_".format(identifier)
     return identifier