Exemplo n.º 1
0
        public virtual string GetFieldDeclarationTypeString(FieldDeclarationType fieldDeclarationType)
        {
            switch (fieldDeclarationType)
            {
            case FieldDeclarationType.Const:
                return("const");

            case FieldDeclarationType.Var:
                return("var");

            case FieldDeclarationType.Let:
                return("let");

            default:
                throw new ArgumentOutOfRangeException(nameof(fieldDeclarationType), fieldDeclarationType, null);
            }
        }
Exemplo n.º 2
0
 private AttributeFieldSource(string name, string type, FieldDeclarationType decl, string key, int id)
 => (FieldName, TypeName, FieldType, Key, Id) = (name, type, decl, key, id);