documentation: Update Note Protocol

Using /// rather than simply //.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-04-27 09:03:59 -04:00
parent 0f0662709e
commit 8c0c16ed87
9 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ extension Declaration: CompilableDeclaration {
let declaration_compilers: [String: CompilableDeclaration.Type] = [
"function_declaration": FunctionDeclaration.self,
"control_declaration": Control.self,
"type_declaration": P4Struct.self, // ASSUME: Type declarations are struct declarations.
"type_declaration": P4Struct.self, /// ASSUME: Type declarations are struct declarations.
"extern_declaration": ExternDeclaration.self,
]
@@ -273,7 +273,7 @@ extension P4Lang.Parser: CompilableDeclaration {
let type_node = current_node
var parser_name: Common.Identifier? = .none
// TODO: Handle parser parameter lists.
/// TODO: Handle parser parameter lists.
var parameter_list = ParameterList()
do {
+1 -1
View File
@@ -352,7 +352,7 @@ extension BinaryOperatorExpression: CompilableExpression {
ErrorOnNode(
node: node, withError: "Malformed binary operator expression")))
// TODO: This macro cannot handle new lines in the arrays
/// TODO: This macro cannot handle new lines in the arrays
// swift-format-ignore
#RequireNodesType<Node, EvaluatableExpression?>(
nodes: binary_operator_expression_node,
+1 -1
View File
@@ -275,7 +275,7 @@ public struct Parser {
var error: Error? = .none
var current_context = context
// TODO: Assert that there is only one.
/// TODO: Assert that there is only one.
node.enumerateNamedChildren { parser_state in
if parser_state.nodeType != "parserState" {
return