Examples of GoLiteralComposite


Examples of ro.redeul.google.go.lang.psi.expressions.literals.composite.GoLiteralComposite

            parse("" +
                      "package main\n" +
                      "var e = Line{origin, Point{y: -4, z: 12.3}}\n"));


        GoLiteralComposite composite =
            getAs(GoLiteralComposite.class,
                  castAs(GoLiteralExpression.class, 0,
                         childAt(0,
                                 childAt(0,
                                         file.getGlobalVariables()
                                 ).getDeclarations()
                         ).getExpressions()
                  ).getLiteral());

        assertEquals("Line",
                     getAs(GoPsiTypeName.class,
                           composite.getLiteralType()
                     ).getName());

        GoLiteralCompositeValue value = get(composite.getValue());

        GoLiteralCompositeElement valueElement;
        valueElement = childAt(0, value.getElements());

        assertNull(valueElement.getKey());
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.expressions.literals.composite.GoLiteralComposite

                        }
                    }
                });

            case Composite:
                GoLiteralComposite composite = (GoLiteralComposite) literal;
                GoPsiType literalType = composite.getLiteralType();
                if (literalType == null) {
                    return GoType.EMPTY_ARRAY;
                }
                return new GoType[]{
                        GoTypes.fromPsi(literalType)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.