package jetbrains.mps.build.sandbox.javacode; /*Generated by MPS */ import jetbrains.mps.scope.Scope; import org.jetbrains.mps.openapi.model.SNode; import org.jetbrains.annotations.Nullable; import jetbrains.mps.baseLanguage.scopes.Scopes; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import jetbrains.mps.internal.collections.runtime.Sequence; import jetbrains.mps.internal.collections.runtime.ListSequence; import java.util.ArrayList; import jetbrains.mps.internal.collections.runtime.IWhereFilter; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations; import org.jetbrains.annotations.NotNull; import jetbrains.mps.baseLanguage.closures.runtime._FunctionTypes; /** * This class contains some stupid code to check testExternalBuild. */ public class TestScope extends Scope { public TestScope() { } @Override public Iterable<SNode> getAvailableElements(@Nullable String prefix) { Scopes.forVariables(MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, "jetbrains.mps.baseLanguage.structure.DotExpression"), this, null); return Sequence.fromIterable(((Iterable<SNode>) ListSequence.fromList(new ArrayList<SNode>()))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, "jetbrains.mps.baseLanguage.structure.DotExpression")); } }); } @Nullable @Override public SNode resolve(SNode contextNode, @NotNull String refText) { return null; } @Nullable @Override public String getReferenceText(SNode contextNode, @NotNull SNode node) { return new _FunctionTypes._return_P0_E0<String>() { public String invoke() { return "wow"; } }.invoke(); } }