MCPcopy Index your code
hub / github.com/nodejs/node / __init__

Method __init__

tools/inspector_protocol/jinja2/environment.py:264–338  ·  view source on GitHub ↗
(self,
                 block_start_string=BLOCK_START_STRING,
                 block_end_string=BLOCK_END_STRING,
                 variable_start_string=VARIABLE_START_STRING,
                 variable_end_string=VARIABLE_END_STRING,
                 comment_start_string=COMMENT_START_STRING,
                 comment_end_string=COMMENT_END_STRING,
                 line_statement_prefix=LINE_STATEMENT_PREFIX,
                 line_comment_prefix=LINE_COMMENT_PREFIX,
                 trim_blocks=TRIM_BLOCKS,
                 lstrip_blocks=LSTRIP_BLOCKS,
                 newline_sequence=NEWLINE_SEQUENCE,
                 keep_trailing_newline=KEEP_TRAILING_NEWLINE,
                 extensions=(),
                 optimized=True,
                 undefined=Undefined,
                 finalize=None,
                 autoescape=False,
                 loader=None,
                 cache_size=400,
                 auto_reload=True,
                 bytecode_cache=None,
                 enable_async=False)

Source from the content-addressed store, hash-verified

262 context_class = Context
263
264 def __init__(self,
265 block_start_string=BLOCK_START_STRING,
266 block_end_string=BLOCK_END_STRING,
267 variable_start_string=VARIABLE_START_STRING,
268 variable_end_string=VARIABLE_END_STRING,
269 comment_start_string=COMMENT_START_STRING,
270 comment_end_string=COMMENT_END_STRING,
271 line_statement_prefix=LINE_STATEMENT_PREFIX,
272 line_comment_prefix=LINE_COMMENT_PREFIX,
273 trim_blocks=TRIM_BLOCKS,
274 lstrip_blocks=LSTRIP_BLOCKS,
275 newline_sequence=NEWLINE_SEQUENCE,
276 keep_trailing_newline=KEEP_TRAILING_NEWLINE,
277 extensions=(),
278 optimized=True,
279 undefined=Undefined,
280 finalize=None,
281 autoescape=False,
282 loader=None,
283 cache_size=400,
284 auto_reload=True,
285 bytecode_cache=None,
286 enable_async=False):
287 # !!Important notice!!
288 # The constructor accepts quite a few arguments that should be
289 # passed by keyword rather than position. However it's important to
290 # not change the order of arguments because it's used at least
291 # internally in those cases:
292 # - spontaneous environments (i18n extension and Template)
293 # - unittests
294 # If parameter changes are required only add parameters at the end
295 # and don't change the arguments (or the defaults!) of the arguments
296 # existing already.
297
298 # lexer / parser information
299 self.block_start_string = block_start_string
300 self.block_end_string = block_end_string
301 self.variable_start_string = variable_start_string
302 self.variable_end_string = variable_end_string
303 self.comment_start_string = comment_start_string
304 self.comment_end_string = comment_end_string
305 self.line_statement_prefix = line_statement_prefix
306 self.line_comment_prefix = line_comment_prefix
307 self.trim_blocks = trim_blocks
308 self.lstrip_blocks = lstrip_blocks
309 self.newline_sequence = newline_sequence
310 self.keep_trailing_newline = keep_trailing_newline
311
312 # runtime information
313 self.undefined = undefined
314 self.optimized = optimized
315 self.finalize = finalize
316 self.autoescape = autoescape
317
318 # defaults
319 self.filters = DEFAULT_FILTERS.copy()
320 self.tests = DEFAULT_TESTS.copy()
321 self.globals = DEFAULT_NAMESPACE.copy()

Callers

nothing calls this directly

Calls 4

create_cacheFunction · 0.70
load_extensionsFunction · 0.70
copyMethod · 0.65

Tested by

no test coverage detected