Exemplo n.º 1
0
        private GreenJsonBackgroundListSyntax CaptureBackground()
        {
            var background = GreenJsonBackgroundListSyntax.Create(BackgroundBuilder);

            BackgroundBuilder.Clear();
            return(background);
        }
Exemplo n.º 2
0
 private static RootJsonSyntax CreateParseTreeTooDeepRootSyntax(int startPosition, int length)
 => new RootJsonSyntax(
     new GreenJsonMultiValueSyntax(
         new[] { new GreenJsonValueWithBackgroundSyntax(
                     GreenJsonBackgroundListSyntax.Empty,
                     GreenJsonMissingValueSyntax.Value) },
         GreenJsonBackgroundListSyntax.Create(
             new GreenJsonBackgroundSyntax[] { GreenJsonWhitespaceSyntax.Create(length) })),
     new List <JsonErrorInfo> {
     new JsonErrorInfo(JsonErrorCode.ParseTreeTooDeep, startPosition, 1)
 });