get_code_block_lang() — fastapi Function Reference
Architecture documentation for the get_code_block_lang() function in doc_parsing_utils.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD a7e71bd4_bab8_f786_8624_f19e178c6b74["get_code_block_lang()"] c463d6a9_085f_f272_b9fc_455b7e9b6a57["doc_parsing_utils.py"] a7e71bd4_bab8_f786_8624_f19e178c6b74 -->|defined in| c463d6a9_085f_f272_b9fc_455b7e9b6a57 8bbb49cb_74df_612d_38c6_22ef079c6e8c["extract_multiline_code_blocks()"] 8bbb49cb_74df_612d_38c6_22ef079c6e8c -->|calls| a7e71bd4_bab8_f786_8624_f19e178c6b74 style a7e71bd4_bab8_f786_8624_f19e178c6b74 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/doc_parsing_utils.py lines 475–479
def get_code_block_lang(line: str) -> str:
match = CODE_BLOCK_LANG_RE.match(line)
if match:
return match.group(1)
return ""
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_code_block_lang() do?
get_code_block_lang() is a function in the fastapi codebase, defined in scripts/doc_parsing_utils.py.
Where is get_code_block_lang() defined?
get_code_block_lang() is defined in scripts/doc_parsing_utils.py at line 475.
What calls get_code_block_lang()?
get_code_block_lang() is called by 1 function(s): extract_multiline_code_blocks.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free