documentation: Update Note Protocol
Using /// rather than simply //. Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -44,7 +44,7 @@ public struct Declaration: P4DataType {
|
||||
}
|
||||
|
||||
public func def() -> any Common.P4DataValue {
|
||||
// TODO: Is a default of the extern'd type the right way to go?
|
||||
/// TODO: Is a default of the extern'd type the right way to go?
|
||||
return self.identifier.type.dataType().def()
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public struct FunctionCall {
|
||||
public init(_ callee: P4FFI, withArguments arguments: ArgumentList) {
|
||||
self.callee = (.none, callee)
|
||||
self.arguments = arguments
|
||||
// ASSUME: That the FFI has been checked and the type is always a function declaration.
|
||||
/// ASSUME: That the FFI has been checked and the type is always a function declaration.
|
||||
self.return_type = (callee.type().dataType() as! FunctionDeclaration).tipe.dataType()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user