Java Code Examples for com.intellij.psi.tree.IFileElementType

The following are top voted examples for showing how to use com.intellij.psi.tree.IFileElementType. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: intellij-ce-playground   File: CoreStubTreeLoader.java   Source Code and License 6 votes vote down vote up
@Override
public boolean canHaveStub(VirtualFile file) {
  final FileType fileType = file.getFileType();
  if (fileType instanceof LanguageFileType) {
    Language l = ((LanguageFileType)fileType).getLanguage();
    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition == null) return false;
    final IFileElementType elementType = parserDefinition.getFileNodeType();
    return elementType instanceof IStubFileElementType && ((IStubFileElementType)elementType).shouldBuildStubFor(file);
  }
  else if (fileType.isBinary()) {
    final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
    return builder != null && builder.acceptsFile(file);
  }
  return false;
}
 
Example 2
Project: intellij-ce-playground   File: CumulativeStubVersion.java   Source Code and License 6 votes vote down vote up
public static int getCumulativeVersion() {
  int version = VERSION;
  for (final FileType fileType : FileTypeRegistry.getInstance().getRegisteredFileTypes()) {
    if (fileType instanceof LanguageFileType) {
      Language l = ((LanguageFileType)fileType).getLanguage();
      ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
      if (parserDefinition != null) {
        final IFileElementType type = parserDefinition.getFileNodeType();
        if (type instanceof IStubFileElementType) {
          version += ((IStubFileElementType)type).getStubVersion();
        }
      }
    }

    BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
    if (builder != null) {
      version += builder.getStubVersion();
    }
  }
  return version;
}
 
Example 3
Project: intellij-ce-playground   File: StubUpdatingIndex.java   Source Code and License 6 votes vote down vote up
public static boolean canHaveStub(@NotNull VirtualFile file) {
  final FileType fileType = file.getFileType();
  if (fileType instanceof LanguageFileType) {
    final Language l = ((LanguageFileType)fileType).getLanguage();
    final ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition == null) {
      return false;
    }

    final IFileElementType elementType = parserDefinition.getFileNodeType();
    if (elementType instanceof IStubFileElementType) {
      if (((IStubFileElementType)elementType).shouldBuildStubFor(file)) {
        return true;
      }
      if (IndexingStamp.isFileIndexedStateCurrent(file, INDEX_ID)) {
        return true;
      }
    }
  }
  final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
  return builder != null && builder.acceptsFile(file);
}
 
Example 4
Project: spoofax-intellij   File: DefaultIdeaLanguageManager.java   Source Code and License 6 votes vote down vote up
/**
 * Creates the IDEA language object associated with the specified language.
 *
 * @param language
 *            The language.
 * @return The created IDEA language.
 */
private LanguageBindings createLanguageBindings(final ILanguage language) {
    final MetaborgIdeaLanguage ideaLanguage = createIdeaLanguage(language);
    final MetaborgLanguageFileType fileType = createFileType(ideaLanguage);
    final SpoofaxTokenTypeManager tokenTypeManager = createTokenTypeManager(ideaLanguage);
    final IFileElementType fileElementType = createFileElementType(ideaLanguage, tokenTypeManager);
    final ParserDefinition parserDefinition = createParserDefinition(fileType, fileElementType);
    final SpoofaxSyntaxHighlighterFactory syntaxHighlighterFactory = createSyntaxHighlighterFactory();

    final InstanceLanguageExtensionPoint<?> parserDefinitionExtension =
        new InstanceLanguageExtensionPoint<>(ExtensionIds.ParserDefinition, ideaLanguage, parserDefinition);
    final InstanceSyntaxHighlighterFactoryExtensionPoint syntaxHighlighterFactoryExtension =
        new InstanceSyntaxHighlighterFactoryExtensionPoint(ideaLanguage, syntaxHighlighterFactory);
    final InstanceLanguageExtensionPoint<?> externalAnnotatorExtension = new InstanceLanguageExtensionPoint<>(
        ExtensionIds.ExternalAnnotator, ideaLanguage, this.metaborgSourceAnnotator);

    return new LanguageBindings(tokenTypeManager, fileType, parserDefinitionExtension,
        syntaxHighlighterFactoryExtension, externalAnnotatorExtension);
}
 
Example 5
Project: tools-idea   File: CoreStubTreeLoader.java   Source Code and License 6 votes vote down vote up
@Override
public boolean canHaveStub(VirtualFile file) {
  final FileType fileType = file.getFileType();
  if (fileType instanceof LanguageFileType) {
    Language l = ((LanguageFileType)fileType).getLanguage();
    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition == null) return false;
    final IFileElementType elementType = parserDefinition.getFileNodeType();
    return elementType instanceof IStubFileElementType && ((IStubFileElementType)elementType).shouldBuildStubFor(file);
  }
  else if (fileType.isBinary()) {
    final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
    return builder != null && builder.acceptsFile(file);
  }
  return false;
}
 
Example 6
Project: tools-idea   File: StubUpdatingIndex.java   Source Code and License 6 votes vote down vote up
public static boolean canHaveStub(@NotNull VirtualFile file) {
  final FileType fileType = file.getFileType();
  if (fileType instanceof LanguageFileType) {
    final Language l = ((LanguageFileType)fileType).getLanguage();
    final ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition == null) {
      return false;
    }

    final IFileElementType elementType = parserDefinition.getFileNodeType();
    if (elementType instanceof IStubFileElementType) {
      if (((IStubFileElementType)elementType).shouldBuildStubFor(file)) {
        return true;
      }
      final ID indexId = IndexInfrastructure.getStubId(INDEX_ID, file.getFileType());
      if (IndexingStamp.isFileIndexed(file, indexId, IndexInfrastructure.getIndexCreationStamp(indexId))) {
        return true;
      }
    }
  }
  final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
  return builder != null && builder.acceptsFile(file);
}
 
Example 7
Project: tools-idea   File: StubUpdatingIndex.java   Source Code and License 6 votes vote down vote up
private static Map<FileType, Integer> computeVersionMap() {
  Map<FileType, Integer> map = new HashMap<FileType, Integer>();
  for (final FileType fileType : FileTypeManager.getInstance().getRegisteredFileTypes()) {
    if (fileType instanceof LanguageFileType) {
      Language l = ((LanguageFileType)fileType).getLanguage();
      ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
      if (parserDefinition != null) {
        final IFileElementType type = parserDefinition.getFileNodeType();
        if (type instanceof IStubFileElementType) {
          map.put(fileType, ((IStubFileElementType)type).getStubVersion());
        }
      }
    }
    final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
    if (builder != null) {
      map.put(fileType, builder.getStubVersion());
    }
  }
  return map;
}
 
Example 8
Project: idea-gitignore   File: IgnoreFile.java   Source Code and License 6 votes vote down vote up
/** Builds a new instance of {@link IgnoreFile}. */
public IgnoreFile(@NotNull FileViewProvider viewProvider, @NotNull IgnoreFileType fileType) {
    super(viewProvider);

    this.fileType = fileType;
    this.language = findLanguage(fileType.getLanguage(), viewProvider);

    final ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(this.language);
    if (parserDefinition == null) {
        throw new RuntimeException(
                "PsiFileBase: language.getParserDefinition() returned null for: " + this.language
        );
    }
    this.parserDefinition = parserDefinition;

    final IFileElementType nodeType = parserDefinition.getFileNodeType();
    init(nodeType, nodeType);
}
 
Example 9
Project: consulo-csharp   File: CSharpFileFactory.java   Source Code and License 6 votes vote down vote up
@NotNull
private static IElementType createElementType(String id, BiConsumer<PsiBuilder, LanguageVersion> consumer)
{
	return new IFileElementType(id, CSharpLanguage.INSTANCE)
	{
		@Override
		protected ASTNode doParseContents(@NotNull ASTNode chameleon, @NotNull PsiElement psi)
		{
			final Project project = psi.getProject();
			final Language languageForParser = getLanguageForParser(psi);
			final LanguageVersion tempLanguageVersion = chameleon.getUserData(LanguageVersion.KEY);
			final LanguageVersion languageVersion = tempLanguageVersion == null ? psi.getLanguageVersion() : tempLanguageVersion;
			final PsiBuilder builder = PsiBuilderFactory.getInstance().createBuilder(project, chameleon, null, languageForParser, languageVersion, chameleon.getChars());
			consumer.accept(builder, languageVersion);
			while(!builder.eof())
			{
				builder.advanceLexer();
			}
			return builder.getTreeBuilt();
		}
	};
}
 
Example 10
Project: intellij-plugin-v4   File: ANTLRv4GrammarParser.java   Source Code and License 6 votes vote down vote up
@Override
protected ParseTree parseImpl(ANTLRv4Parser parser, IElementType root, PsiBuilder builder) {
	int startRule;
	if (root instanceof IFileElementType) {
		startRule = ANTLRv4Parser.RULE_grammarSpec;
	}
	else if (root == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.TOKEN_REF)
		|| root == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.RULE_REF)) {
		startRule = ANTLRv4Parser.RULE_atom;
	}
	else {
		startRule = Token.INVALID_TYPE;
	}

	switch (startRule) {
	case ANTLRv4Parser.RULE_grammarSpec:
		return parser.grammarSpec();

	case ANTLRv4Parser.RULE_atom:
		return parser.atom();

	default:
		String ruleName = ANTLRv4Parser.ruleNames[startRule];
		throw new UnsupportedOperationException(String.format("cannot start parsing using root element %s", root));
	}
}
 
Example 11
Project: consulo   File: CoreStubTreeLoader.java   Source Code and License 6 votes vote down vote up
@Override
public boolean canHaveStub(VirtualFile file) {
  final FileType fileType = file.getFileType();
  if (fileType instanceof LanguageFileType) {
    Language l = ((LanguageFileType)fileType).getLanguage();
    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition == null) return false;
    final IFileElementType elementType = parserDefinition.getFileNodeType();
    return elementType instanceof IStubFileElementType && ((IStubFileElementType)elementType).shouldBuildStubFor(file);
  }
  else if (fileType.isBinary()) {
    final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
    return builder != null && builder.acceptsFile(file);
  }
  return false;
}
 
Example 12
Project: consulo   File: StubUpdatingIndex.java   Source Code and License 6 votes vote down vote up
public static boolean canHaveStub(@Nonnull VirtualFile file) {
  final FileType fileType = file.getFileType();
  if (fileType instanceof LanguageFileType) {
    final Language l = ((LanguageFileType)fileType).getLanguage();
    final ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition == null) {
      return false;
    }

    final IFileElementType elementType = parserDefinition.getFileNodeType();
    if (elementType instanceof IStubFileElementType) {
      if (((IStubFileElementType)elementType).shouldBuildStubFor(file)) {
        return true;
      }
      FileBasedIndex fileBasedIndex = FileBasedIndex.getInstance();
      if (file instanceof NewVirtualFile &&
          fileBasedIndex instanceof FileBasedIndexImpl &&
          ((FileBasedIndexImpl)fileBasedIndex).getIndex(INDEX_ID).isIndexedStateForFile(((NewVirtualFile)file).getId(), file)) {
        return true;
      }
    }
  }
  final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
  return builder != null && builder.acceptsFile(file);
}
 
Example 13
Project: consulo   File: StubVersionMap.java   Source Code and License 6 votes vote down vote up
private static Object getVersionOwner(FileType fileType) {
  Object owner = null;
  if (fileType instanceof LanguageFileType) {
    Language l = ((LanguageFileType)fileType).getLanguage();
    ParserDefinition parserDefinition = LanguageParserDefinitions.INSTANCE.forLanguage(l);
    if (parserDefinition != null) {
      final IFileElementType type = parserDefinition.getFileNodeType();
      if (type instanceof IStubFileElementType) {
        owner = type;
      }
    }
  }

  BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
  if (builder != null) {
    owner = builder;
  }
  return owner;
}
 
Example 14
Project: intellij-ce-playground   File: LightStubBuilder.java   Source Code and License 5 votes vote down vote up
@Override
public StubElement buildStubTree(@NotNull PsiFile file) {
  LighterAST tree = FORCED_AST.get();
  if (tree == null) {
    FileType fileType = file.getFileType();
    if (!(fileType instanceof LanguageFileType)) {
      LOG.error("File is not of LanguageFileType: " + fileType + ", " + file);
      return null;
    }
    Language language = ((LanguageFileType)fileType).getLanguage();
    final IFileElementType contentType = LanguageParserDefinitions.INSTANCE.forLanguage(language).getFileNodeType();
    if (!(contentType instanceof IStubFileElementType)) {
      LOG.error("File is not of IStubFileElementType: " + contentType + ", " + file);
      return null;
    }

    final FileASTNode node = file.getNode();
    if (contentType instanceof ILightStubFileElementType) {
      tree = node.getLighterAST();
    }
    else {
      tree = new TreeBackedLighterAST(node);
    }
  } else {
    FORCED_AST.set(null);
  }
  if (tree == null) return null;

  final StubElement rootStub = createStubForFile(file, tree);
  buildStubTree(tree, tree.getRoot(), rootStub);
  return rootStub;
}
 
Example 15
Project: intellij-ce-playground   File: CoreASTFactory.java   Source Code and License 5 votes vote down vote up
@Override
@NotNull
public LazyParseableElement createLazy(final ILazyParseableElementType type, final CharSequence text) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, text);
  }

  return new LazyParseableElement(type, text);
}
 
Example 16
Project: intellij-ce-playground   File: CoreASTFactory.java   Source Code and License 5 votes vote down vote up
@Override
@NotNull
public CompositeElement createComposite(final IElementType type) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, null);
  }

  return new CompositeElement(type);
}
 
Example 17
Project: intellij-ce-playground   File: PropertiesASTFactory.java   Source Code and License 5 votes vote down vote up
@Override
@Nullable
public CompositeElement createComposite(final IElementType type) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, null);
  }
  return new CompositeElement(type);
}
 
Example 18
Project: spoofax-intellij   File: IdeaSpoofaxMetaModule.java   Source Code and License 5 votes vote down vote up
/**
 * Binds token and PSI elements and related classes.
 */
protected void bindElements() {
    bind(IMetaborgPsiElementFactory.class).to(DefaultMetaborgPsiElementFactory.class).in(Singleton.class);
    install(new FactoryModuleBuilder()
            .implement(IFileElementType.class, MetaborgFileElementType.class)
            .build(IFileElementTypeFactory.class));
    install(new FactoryModuleBuilder()
            .implement(ATermAstElementTypeProvider.class, ATermAstElementTypeProvider.class)
            .build(IATermAstElementTypeProviderFactory.class));
}
 
Example 19
Project: spoofax-intellij   File: MetaborgParserDefinition.java   Source Code and License 5 votes vote down vote up
@Inject
/* package private */ MetaborgParserDefinition(
        @Assisted final MetaborgLanguageFileType fileType,
        @Assisted final IFileElementType fileElementType,
        final IMetaborgPsiElementFactory psiElementFactory,
        final ICharacterLexerFactory characterLexerFactory,
        final ILanguageBindingManager bindingManager) {
    this.fileType = fileType;
    this.fileElement = fileElementType;
    this.psiElementFactory = psiElementFactory;
    this.characterLexerFactory = characterLexerFactory;
    this.bindingManager = bindingManager;
}
 
Example 20
Project: tools-idea   File: CoreASTFactory.java   Source Code and License 5 votes vote down vote up
@Override
@NotNull
public LazyParseableElement createLazy(final ILazyParseableElementType type, final CharSequence text) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, text);
  }

  return new LazyParseableElement(type, text);
}
 
Example 21
Project: tools-idea   File: CoreASTFactory.java   Source Code and License 5 votes vote down vote up
@Override
@NotNull
public CompositeElement createComposite(final IElementType type) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, null);
  }

  return new CompositeElement(type);
}
 
Example 22
Project: tools-idea   File: PropertiesASTFactory.java   Source Code and License 5 votes vote down vote up
@Nullable
public CompositeElement createComposite(final IElementType type) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, null);
  }
  return new CompositeElement(type);
}
 
Example 23
Project: intellij-plugin-v4   File: ANTLRv4ASTFactory.java   Source Code and License 5 votes vote down vote up
/** Create a FileElement for root or a parse tree CompositeElement (not
*  PSI) for the token. This impl is more or less the default.
*/
  @Override
  public CompositeElement createComposite(IElementType type) {
      if (type instanceof IFileElementType) {
          return new FileElement(type, null);
}
      return new CompositeElement(type);
  }
 
Example 24
Project: consulo   File: DefaultASTCompositeFactory.java   Source Code and License 5 votes vote down vote up
@Nonnull
@Override
public CompositeElement createComposite(IElementType type) {
  if (type instanceof IFileElementType) {
    return new FileElement(type, null);
  }
  if (type instanceof ICompositeElementType) {
    return (CompositeElement)((ICompositeElementType)type).createCompositeNode();
  }
  return new CompositeElement(type);
}
 
Example 25
Project: TS-IJ   File: TSParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 26
Project: AppleScript-IDEA   File: AppleScriptParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
  return FILE;
}
 
Example 27
Project: reasonml-idea-plugin   File: RmlParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return RmlFileStubElementType.INSTANCE;
}
 
Example 28
Project: reasonml-idea-plugin   File: OclP4ParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 29
Project: reasonml-idea-plugin   File: OclParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 30
Project: greycat-idea-plugin   File: GCMParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 31
Project: EmojiPrefix   File: EmojiResourceParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
	return FILE;
}
 
Example 32
Project: hybris-integration-intellij-idea-plugin   File: FlexibleSearchParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 33
Project: hybris-integration-intellij-idea-plugin   File: ImpexParserDefinition.java   Source Code and License 4 votes vote down vote up
@NotNull
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 34
Project: intellij-plugin   File: CoffigYamlParserDefinition.java   Source Code and License 4 votes vote down vote up
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 35
Project: idea-onescript   File: OneScriptParserDefinition.java   Source Code and License 4 votes vote down vote up
@NotNull
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 36
Project: intellij-csv-validator   File: CsvParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 37
Project: Goal-Intellij-Plugin   File: ActionSpecParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 38
Project: Goal-Intellij-Plugin   File: PrologParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return File;
}
 
Example 39
Project: Goal-Intellij-Plugin   File: ModuleParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 40
Project: Goal-Intellij-Plugin   File: MasParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 41
Project: Goal-Intellij-Plugin   File: TestParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 42
Project: mule-intellij-plugins   File: RamlParserDefinition.java   Source Code and License 4 votes vote down vote up
public IFileElementType getFileNodeType()
{
    return FILE;
}
 
Example 43
Project: mule-intellij-plugins   File: MelParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 44
Project: mule-intellij-plugins   File: WeaveParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 45
Project: nix-idea   File: NixParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 46
Project: sutr-io   File: SutrParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 47
Project: sutr-io   File: UtrParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 48
Project: smcplugin   File: SmcParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 49
Project: cs-intellij-plugin   File: CloudSlangParserDefinition.java   Source Code and License 4 votes vote down vote up
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 50
Project: cup-plugin   File: CupParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 51
Project: intellij-neos   File: FusionParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FusionFileStub.TYPE;
}
 
Example 52
Project: IntelliJ-Rexx   File: RexxParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
	return FILE;
}
 
Example 53
Project: rythm_plugin   File: RythmParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return RythmFileElementType.INSTANCE;
}
 
Example 54
Project: arma-intellij-plugin   File: SQFParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
	return FILE;
}
 
Example 55
Project: arma-intellij-plugin   File: HeaderParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
	return FILE;
}
 
Example 56
Project: RtplPlugin   File: RtplParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return new IFileElementType(RtplLanguage.INSTANCE);
}
 
Example 57
Project: jetbrains-hacklang   File: HackParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 58
Project: elm-plugin   File: ElmParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 59
Project: ion-intellij-plugin   File: IonParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return FILE;
}
 
Example 60
Project: intellij-snakeyaml   File: YamlParserDefinition.java   Source Code and License 4 votes vote down vote up
@Override
public IFileElementType getFileNodeType() {
    return YamlNodes.FILE;
}