Package org.erlide.engine.services.parsing

Examples of org.erlide.engine.services.parsing.ScannerService.dispose()


        if (fModule == null) {
            try {
                fModule = ErlModelUtils.getModule(getEditorInput());
                fModule.createScanner();
                final ScannerService erlScanner = fModule.getScanner();
                erlScanner.dispose();
            } catch (final CoreException e) {
            }
        }
        return fModule;
    }
View Full Code Here


            assertEquals(function.getParent(), module);
            assertEquals(
                    ErlangEngine.getInstance().getModelUtilService().getProject(function),
                    project);
        } finally {
            scanner.dispose();
        }
    }

    @Test
    public void findExternalModule() throws Exception {
View Full Code Here

            function1 = module.findFunction(f_1);
            function2 = module.findFunction(abc_1);
            assertNull(function1);
            assertNotNull(function2);
        } finally {
            scanner.dispose();
        }
    }

    // void finalReconcile();
    // Empty method
View Full Code Here

            assertNotNull(token6);
            assertEquals(ErlToken.KIND_OTHER, token6.getKind());
            final ErlToken token7 = scanner.getTokenAt(text.length());
            assertNull(token7);
        } finally {
            scanner.dispose();
        }
    }

    // void setResource(IFile file);
    @Test
View Full Code Here

            assertTrue(element1 instanceof IErlTypespec);
            assertNull(element2);
            assertTrue(element3 instanceof IErlTypespec);
            assertNull(element4);
        } finally {
            scanner.dispose();
        }
    }

    @Test
    public void findExternalFunctionModuleTest() throws Exception {
View Full Code Here

                    .findModule(callbackModule);
            final ScannerService scanner = module.getScanner();
            try {
                module.resetAndCacheScannerAndParser(null);
            } finally {
                scanner.dispose();
            }

            for (final IErlElement el : module
                    .getChildrenOfKind(ErlElementKind.ATTRIBUTE)) {
                final IErlAttribute attr = (IErlAttribute) el;
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.