summaryrefslogtreecommitdiff
path: root/src/parser/parse/index.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-04-01 10:25:28 -0600
committerGravatar GitHub <noreply@github.com> 2021-04-01 10:25:28 -0600
commitc26c244ca2634d462616d6cf71072fbe26becba2 (patch)
tree1bd5e83eff9ca88200aacb272c84439f192015ec /src/parser/parse/index.ts
parentf6a7ac67befff863e34133673efb78ea7ac0fe48 (diff)
downloadastro-c26c244ca2634d462616d6cf71072fbe26becba2.tar.gz
astro-c26c244ca2634d462616d6cf71072fbe26becba2.tar.zst
astro-c26c244ca2634d462616d6cf71072fbe26becba2.zip
Annoying Lint PR #2 (#47)
Diffstat (limited to 'src/parser/parse/index.ts')
-rw-r--r--src/parser/parse/index.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/parse/index.ts b/src/parser/parse/index.ts
index 052cf0317..124e125ef 100644
--- a/src/parser/parse/index.ts
+++ b/src/parser/parse/index.ts
@@ -217,6 +217,11 @@ export class Parser {
}
}
+/**
+ * Parse
+ * Step 1/3 in Astro SSR.
+ * This is the first pass over .astro files and the step at which we convert a string to an AST for us to crawl.
+ */
export default function parse(template: string, options: ParserOptions = {}): Ast {
const parser = new Parser(template, options);