// Path: src/org/gololang/netbeans/parser/GoloParser.java
// public class GoloParserResult extends ParserResult {
//   private final ASTCompilationUnit compilationUnit;
//   private final GoloModule module;
//   private List<? extends Error> errors = new ArrayList<>();
// 
//   GoloParserResult (ASTCompilationUnit compilationUnit, GoloModule module, List<? extends Error> errors) {
//     super (snapshot);
//     this.compilationUnit = compilationUnit;
//     this.module = module;
//     this.errors = errors;
//   }
// 
//   @Override
//   protected void invalidate () {
//   }
// 
//   @Override
//   public List<? extends Error> getDiagnostics() {
//       return errors;
//   }
// 
//   public ASTCompilationUnit getCompilationUnit() {
//       return compilationUnit;
//   }
// 
//   public GoloModule getModule() {
//       return module;
//   }
// }


import org.gololang.netbeans.parser.GoloParser.GoloParserResult;
import org.netbeans.modules.parsing.spi.Parser;
import org.netbeans.modules.parsing.spi.ParserResultTask;
import org.netbeans.modules.parsing.spi.Scheduler;
import org.netbeans.modules.parsing.spi.SchedulerEvent;
/*
 *  Copyright 2013 SERLI (www.serli.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * 
 */

package org.gololang.netbeans.parser;


/**
 *
 * @author Julien Déray
 */
public class FileElementsTask extends ParserResultTask {

    @Override
    public void run(Parser.Result result, SchedulerEvent se) {
// Path: src/org/gololang/netbeans/parser/GoloParser.java
// public class GoloParserResult extends ParserResult {
//   private final ASTCompilationUnit compilationUnit;
//   private final GoloModule module;
//   private List<? extends Error> errors = new ArrayList<>();
// 
//   GoloParserResult (ASTCompilationUnit compilationUnit, GoloModule module, List<? extends Error> errors) {
//     super (snapshot);
//     this.compilationUnit = compilationUnit;
//     this.module = module;
//     this.errors = errors;
//   }
// 
//   @Override
//   protected void invalidate () {
//   }
// 
//   @Override
//   public List<? extends Error> getDiagnostics() {
//       return errors;
//   }
// 
//   public ASTCompilationUnit getCompilationUnit() {
//       return compilationUnit;
//   }
// 
//   public GoloModule getModule() {
//       return module;
//   }
// }


// Path: src/org/gololang/netbeans/parser/FileElementsTask.java
import org.gololang.netbeans.parser.GoloParser.GoloParserResult;
import org.netbeans.modules.parsing.spi.Parser;
import org.netbeans.modules.parsing.spi.ParserResultTask;
import org.netbeans.modules.parsing.spi.Scheduler;
import org.netbeans.modules.parsing.spi.SchedulerEvent;

/*
 *  Copyright 2013 SERLI (www.serli.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * 
 */

package org.gololang.netbeans.parser;


/**
 *
 * @author Julien Déray
 */
public class FileElementsTask extends ParserResultTask {

    @Override
    public void run(Parser.Result result, SchedulerEvent se) {
        GoloParserResult sjResult = (GoloParserResult) result;