Package org.raml.parser.completion

Examples of org.raml.parser.completion.DefaultSuggestion


    public void emptyRaml()
    {
        YamlDocumentSuggester yamlDocumentSuggester = new YamlDocumentSuggester(new RamlDocumentBuilder());
        List<Suggestion> suggest = yamlDocumentSuggester.suggest("", "");
        assertThat(suggest.size(), is(1));
        assertThat(suggest.contains(new DefaultSuggestion(VERSION)), is(true));
        assertThat(suggest.get(0).getIndentation(), is(0));
    }
View Full Code Here


        int contextColumn = calculateContextColumn(context);
        String suggestRaml = digestSuggestRaml(topSection, bottomSection, contextColumn);
        this.offset = suggestRaml.length();
        if (offset == 0)
        {
            result.add(new DefaultSuggestion(RamlEmitter.VERSION, 0));
            return result;
        }
        Yaml yamlParser = new Yaml();
        NodeVisitor nodeVisitor = new NodeVisitor(this, new DefaultResourceLoader());
        MappingNode rootNode = null;
View Full Code Here

TOP

Related Classes of org.raml.parser.completion.DefaultSuggestion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.