Java Code Examples for com.intellij.psi.tree.TokenSet#EMPTY

The following examples show how to use com.intellij.psi.tree.TokenSet#EMPTY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OclFindUsagesProvider.java    From reasonml-idea-plugin with MIT License 5 votes vote down vote up
@Nullable
@Override
public WordsScanner getWordsScanner() {
    OclTypes types = OclTypes.INSTANCE;
    return new DefaultWordsScanner(
            new OclLexer(),
            TokenSet.create(types.C_UPPER_SYMBOL, types.C_LOWER_SYMBOL, types.C_VARIANT),
            TokenSet.EMPTY,
            TokenSet.EMPTY);
}
 
Example 2
Source File: RmlFindUsagesProvider.java    From reasonml-idea-plugin with MIT License 5 votes vote down vote up
@Nullable
@Override
public WordsScanner getWordsScanner() {
    RmlTypes types = RmlTypes.INSTANCE;
    return new DefaultWordsScanner(new RmlLexer(), TokenSet.create(types.C_UPPER_SYMBOL, types.C_LOWER_SYMBOL, types.C_VARIANT), TokenSet.EMPTY,
                                   TokenSet.EMPTY);
}
 
Example 3
Source File: SimpleFindUsagesProvider.java    From intellij-sdk-docs with Apache License 2.0 5 votes vote down vote up
@Nullable
@Override
public WordsScanner getWordsScanner() {
  return new DefaultWordsScanner(new SimpleLexerAdapter(),
                                 TokenSet.create(SimpleTypes.KEY),
                                 TokenSet.create(SimpleTypes.COMMENT),
                                 TokenSet.EMPTY);
}
 
Example 4
Source File: DotEnvFindUsagesProvider.java    From idea-php-dotenv-plugin with MIT License 5 votes vote down vote up
@Nullable
@Override
public WordsScanner getWordsScanner() {
    return new DefaultWordsScanner(new DotEnvLexerAdapter(),
            TokenSet.create(DotEnvTypes.PROPERTY),
            TokenSet.create(DotEnvTypes.COMMENT),
            TokenSet.EMPTY);
}
 
Example 5
Source File: PlainTextParserDefinition.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
@Nonnull
public TokenSet getCommentTokens(@Nonnull LanguageVersion languageVersion) {
  return TokenSet.EMPTY;
}
 
Example 6
Source File: ConceptParserDefinition.java    From Intellij-Plugin with Apache License 2.0 4 votes vote down vote up
@NotNull
public TokenSet getStringLiteralElements() {
    return TokenSet.EMPTY;
}
 
Example 7
Source File: ShaderLabParserDefinition.java    From consulo-unity3d with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public TokenSet getStringLiteralElements(@Nonnull LanguageVersion languageVersion)
{
	return TokenSet.EMPTY;
}
 
Example 8
Source File: BuckParserDefinition.java    From Buck-IntelliJ-Plugin with Apache License 2.0 4 votes vote down vote up
@NotNull
public TokenSet getStringLiteralElements() {
  return TokenSet.EMPTY;
}
 
Example 9
Source File: GLSLParserDefinition.java    From glsl4idea with GNU Lesser General Public License v3.0 4 votes vote down vote up
@NotNull
public TokenSet getStringLiteralElements() {
    return TokenSet.EMPTY;
}
 
Example 10
Source File: CabalParserDefinition.java    From intellij-haskforce with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public TokenSet getStringLiteralElements() {
  return TokenSet.EMPTY;
}
 
Example 11
Source File: JSGraphQLEndpointDocParserDefinition.java    From js-graphql-intellij-plugin with MIT License 4 votes vote down vote up
@NotNull
public TokenSet getCommentTokens() {
	return TokenSet.EMPTY;
}
 
Example 12
Source File: ProjectViewParserDefinition.java    From intellij with Apache License 2.0 4 votes vote down vote up
@Override
public TokenSet getStringLiteralElements() {
  return TokenSet.EMPTY;
}
 
Example 13
Source File: Sand2LanguageVersion.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public TokenSet getStringLiteralElements() {
  return TokenSet.EMPTY;
}
 
Example 14
Source File: EquivalenceDescriptorProvider.java    From consulo with Apache License 2.0 4 votes vote down vote up
public TokenSet getIgnoredTokens() {
  return TokenSet.EMPTY;
}
 
Example 15
Source File: CsvParserDefinition.java    From intellij-csv-validator with Apache License 2.0 4 votes vote down vote up
@Override
@NotNull
public TokenSet getStringLiteralElements() {
    return TokenSet.EMPTY;
}
 
Example 16
Source File: BcfgParserDefinition.java    From buck with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public TokenSet getStringLiteralElements() {
  return TokenSet.EMPTY;
}
 
Example 17
Source File: BuckParserDefinition.java    From buck with Apache License 2.0 4 votes vote down vote up
@Override
public TokenSet getStringLiteralElements() {
  return TokenSet.EMPTY;
}
 
Example 18
Source File: OclYaccParserDefinition.java    From reasonml-idea-plugin with MIT License 4 votes vote down vote up
@NotNull
public TokenSet getStringLiteralElements() {
    return TokenSet.EMPTY;
}
 
Example 19
Source File: XQueryFindUsageProvider.java    From intellij-xquery with Apache License 2.0 4 votes vote down vote up
@Nullable
@Override
public WordsScanner getWordsScanner() {
    return new DefaultWordsScanner(new XQueryLexer(),
            TokenSet.EMPTY, XQueryParserDefinition.COMMENTS, XQueryParserDefinition.STRINGS);
}
 
Example 20
Source File: LatexParserDefinition.java    From idea-latex with MIT License 2 votes vote down vote up
/**
 * Returns the set of element types which are treated as string literals. "Search in strings"
 * option in refactorings is applied to the contents of such tokens.
 *
 * @return the set of string literal element types.
 */
@NotNull
@Override
public TokenSet getStringLiteralElements() {
    return TokenSet.EMPTY;
}