Skip to content

Commit a99dd69

Browse files
authored
Remove function signature
1 parent de2f8a1 commit a99dd69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/codeql/codeql-language-guides/customizing-library-models-for-go.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ We need to add a tuple to the ``sourceModel``\(namespace, type, subtypes, name,
129129
pack: codeql/go-all
130130
extensible: sourceModel
131131
data:
132-
- ["net", "", False, "Listen", "(string,string)", "", "ReturnValue", "remote", "manual"]
132+
- ["net", "", False, "Listen", "", "", "ReturnValue", "remote", "manual"]
133133
134134
135135
Since we are adding a new source, we need to add a tuple to the ``sourceModel`` extensible predicate.
@@ -139,7 +139,7 @@ The first five values identify the callable (in this case a function) to be mode
139139
- The second value ``""`` is left blank, since the function is not a method of a type.
140140
- The third value ``False`` is a flag that indicates whether or not the source also applies to all overrides of the method.
141141
- The fourth value ``Listen`` is the function name.
142-
- The fifth value ``(string,string)`` is the method input type signature.
142+
- The fifth value ``""`` is the function input type signature. For Go it should always be an empty string. It is needed for other languages where multiple functions or methods may have the same name and they need to be distinguished by the number and types of the arguments.
143143

144144
The sixth value should be left empty and is out of scope for this documentation.
145145
The remaining values are used to define the ``access path``, the ``kind``, and the ``provenance`` (origin) of the source.

0 commit comments

Comments
 (0)