diff options
Diffstat (limited to 'platform/core-api/src/com/intellij/psi/stubs/DefaultStubBuilder.java')
-rw-r--r-- | platform/core-api/src/com/intellij/psi/stubs/DefaultStubBuilder.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/core-api/src/com/intellij/psi/stubs/DefaultStubBuilder.java b/platform/core-api/src/com/intellij/psi/stubs/DefaultStubBuilder.java index 1a8c2003efea..b4290e83651a 100644 --- a/platform/core-api/src/com/intellij/psi/stubs/DefaultStubBuilder.java +++ b/platform/core-api/src/com/intellij/psi/stubs/DefaultStubBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,11 +36,13 @@ public class DefaultStubBuilder implements StubBuilder { return buildStubTreeFor(file, createStubForFile(file)); } + @NotNull protected StubElement createStubForFile(@NotNull PsiFile file) { @SuppressWarnings("unchecked") PsiFileStubImpl stub = new PsiFileStubImpl(file); return stub; } + @NotNull private StubElement buildStubTreeFor(@NotNull PsiElement root, @NotNull StubElement parentStub) { Stack<StubElement> parentStubs = new Stack<StubElement>(); Stack<PsiElement> parentElements = new Stack<PsiElement>(); @@ -84,6 +86,7 @@ public class DefaultStubBuilder implements StubBuilder { return false; } + @NotNull protected StubElement buildStubTreeFor(@NotNull ASTNode root, @NotNull StubElement parentStub) { Stack<StubElement> parentStubs = new Stack<StubElement>(); Stack<ASTNode> parentNodes = new Stack<ASTNode>(); |