private void ParseComputed(KayleeParser.FieldBodyContext body) { var parameter = body.fieldParameterComputed().FirstOrDefault(); if (parameter != null) { var value = parameter.fieldParameterComputedValue(); Field.Computed = bool.Parse(value.BOOLEAN().GetText()); } }
private void ParseDefaultExpression(KayleeParser.FieldBodyContext body) { var parameter = body.fieldParameterDefault().FirstOrDefault(); if (parameter != null) { var value = parameter.fieldParameterDefaultValue(); Field.DefaultExpression = value.GetText(); } }
/// <summary> /// Exit a parse tree produced by <see cref="KayleeParser.fieldBody"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFieldBody([NotNull] KayleeParser.FieldBodyContext context) { }