MCPcopy Create free account
hub / github.com/Cantera/cantera / sets_array

Method sets_array

interfaces/sourcegen/src/sourcegen/csharp/generator.py:69–72  ·  view source on GitHub ↗

True if this function is used to set an array.

(self)

Source from the content-addressed store, hash-verified

67 and self.arglist[-1].p_type == "Span<double>")
68
69 def sets_array(self) -> bool:
70 """True if this function is used to set an array."""
71 return (len(self.arglist) >= 2
72 and self.arglist[-1].p_type.startswith("ReadOnlySpan"))
73
74
75class CSharpSourceGenerator(SourceGenerator):

Callers 1

_scaffold_interopMethod · 0.80

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected