Package com.strobel.assembler.ir.attributes

Examples of com.strobel.assembler.ir.attributes.LineNumberTableAttribute


    private static Integer findFirstLineNumber(final TypeDefinition type) {
        int minLineNumber = Integer.MAX_VALUE;

        for (final MethodDefinition method : type.getDeclaredMethods()) {
            final LineNumberTableAttribute attribute = SourceAttribute.find(AttributeNames.LineNumberTable, method.getSourceAttributes());

            if (attribute != null && !attribute.getEntries().isEmpty()) {
                final int firstLineNumber = attribute.getEntries().get(0).getLineNumber();

                if (firstLineNumber < minLineNumber) {
                    minLineNumber = firstLineNumber;
                }
            }
View Full Code Here


            );
            space();
        }

        if (definition == null || !definition.isTypeInitializer()) {
            final LineNumberTableAttribute lineNumberTable = SourceAttribute.find(
                AttributeNames.LineNumberTable,
                definition != null ? definition.getSourceAttributes()
                                   : Collections.<SourceAttribute>emptyList()
            );
View Full Code Here

TOP

Related Classes of com.strobel.assembler.ir.attributes.LineNumberTableAttribute

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.