Method
struct
(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
Tested by
no test coverage detected