MCPcopy Index your code
hub / github.com/bazelbuild/bazel / struct

Method struct

src/test/java/net/starlark/java/eval/ScriptTest.java:152–155  ·  view source on GitHub ↗
(Dict<String, Object> kwargs)

Source from the content-addressed store, hash-verified

150
151 // Constructor for simple structs, for testing.
152 @StarlarkMethod(name = "struct", documented = false, extraKeywords = @Param(name = "kwargs"))
153 public Struct struct(Dict<String, Object> kwargs) throws EvalException {
154 return new ImmutableStruct(ImmutableMap.copyOf(kwargs));
155 }
156
157 @StarlarkMethod(
158 name = "mutablestruct",

Callers

nothing calls this directly

Calls 1

copyOfMethod · 0.45

Tested by

no test coverage detected