Commit d03059ef authored by Daniel Bluhm's avatar Daniel Bluhm

Selectively Revert "More PR cleanup"

This reverts commit 152388ba.
parent 2bfc7db4
/*******************************************************************************
* Copyright (c) 2020- UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Daniel Bluhm - Initial implementation
*******************************************************************************/
package org.eclipse.ice.dev.annotations.processors; package org.eclipse.ice.dev.annotations.processors;
import java.util.Arrays; import java.util.Arrays;
......
/**
* $name DataElement.
*/
import { DataElement } from "DataElement";
export class $name extends DataElement {
#foreach($field in $fields)
${field.VarName}?: $primitiveMap["${field.Type}"];
#end
constructor() {
super();
}
}
\ No newline at end of file
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
#macro(fieldparametertype)#nonnull("", " ")#fieldtype#end #macro(fieldparametertype)#nonnull("", " ")#fieldtype#end
## Get field declaration ## Get field declaration
#macro(fielddecl) #macro(fielddecl $mutable)
#@settab(1) #@settab(1)
#join(" ", ${field.Annotations})#join(" ", ${field.Modifiers})#fieldtype() ${field.VarName}#if(${field.DefaultValue}) = #evaluate(${field.DefaultValue})#end; #if(${field.DefaultValue} && $mutable) @Builder.Default #end#join(" ", ${field.Annotations})#join(" ", ${field.Modifiers})#fieldtype() ${field.VarName}#if(${field.DefaultValue}) = #evaluate(${field.DefaultValue})#end;
#end #end
#end #end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment