documentation: Update Note Protocol
Using /// rather than simply //. Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user