private static void AppendDisplayString(this GoSDKTypedData argument, IndentedStringBuilder builder, bool isResponse) { builder.AppendLine("\"{0}\": [{1}] {3} \"{2}\"", argument.Name, argument.GoType, argument.BackingField?.PropertyPath, isResponse ? "->" : "<-"); builder.Indent(); argument.Properties.ForEach(prop => prop.AppendDisplayString(builder, isResponse)); builder.Outdent(); }
private GoSDKTypedData Clone(GoSDKInvocation invocation, string path, IModelType type, IEnumerable <Regex> excludes, IVariable variable = null) { var goData = new GoSDKTypedData(invocation, path, new GoSDKTypeChain(type), variable); if (goData.GoType.Terminal == GoSDKTerminalTypes.Complex) { var children = from p in ((CompositeType)goData.GoType.OriginalTerminalType).ComposedProperties let subpath = p.ToPathString(path) where excludes.All(x => !x.IsMatch(subpath)) select Clone(invocation, subpath, p.ModelType, excludes, p); goData.AddProperties(children); } return(goData); }
public virtual string GetAzureRmPropPathLocalVarBaseName(GoSDKTypedData data) => GetAzureRmPropPathLocalVarBaseName(data.PropertyPath.SplitPathStrings().Skip(1));
public void RemoveUpdatedBy(GoSDKTypedData data) => updatedBy.Remove(data);
public void AddUpdatedBy(GoSDKTypedData data) => updatedBy.Add(data);
public void RemoveUsedBy(GoSDKTypedData data) => usedBy.Remove(data);
public void AddUsedBy(GoSDKTypedData data) => usedBy.Add(data);