Package com.facebook.swift.generator.template

Examples of com.facebook.swift.generator.template.ConstantsContext


    public void finish()
        throws IOException
    {
        if (constants.size() > 0) {

            final ConstantsContext constantContext = contextGenerator.constantsFromThrift();

            for (final Const constant : constants) {
                constantContext.addConstant(contextGenerator.constantFromThrift(constant));
            }
            render(constantContext, "constants");
        }
    }
View Full Code Here


    public void finish()
        throws IOException
    {
        if (constants.size() > 0) {

            final ConstantsContext constantContext = contextGenerator.constantsFromThrift();

            for (final Const constant : constants) {
                try {
                    constantContext.addConstant(contextGenerator.constantFromThrift(constant));
                }
                catch (IllegalStateException e) {
                    LOG.error("Could not generate code for constant '{}' due to https://github.com/facebook/swift/issues/209, skipping...", constant.getName());
                }
            }
View Full Code Here

TOP

Related Classes of com.facebook.swift.generator.template.ConstantsContext

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.