INNER CODE UNIT · Python

GuidanceOpen

bsilverthorn/maccarone · src/maccarone/preprocessor.py:93

class GuidanceOpen:
    indent: str

@dataclass
class Guidance:
    text: str

@dataclass
class SnippetOpen:
    indent: str
    guidance: str

def find_line_number(text: str, pos: int):
    #<<find the line number of the given char position>>
    return text.count('\n', 0, pos) + 1
    #<</>>

class RawSourceVisitor(NodeVisitor):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…