Exemplo n.º 1
0
  public static Iterable sourceNodesQuery_7923290658387314672(
      final IOperationContext operationContext, final SourceSubstituteMacroNodesContext _context) {
    SModel behaviorModel = _context.getOriginalInputModel();

    Language language = Language.getLanguageForLanguageAspect(behaviorModel);
    SModel structureModel = LanguageAspect.STRUCTURE.get(language);

    return SModelOperations.getNodes(
        structureModel, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration");
  }
Exemplo n.º 2
0
  public static Iterable sourceNodesQuery_2056529430201935318(
      final IOperationContext operationContext, final SourceSubstituteMacroNodesContext _context) {
    SModel behaviorModel = _context.getOriginalInputModel();

    Language language = Language.getLanguageForLanguageAspect(behaviorModel);
    SModel structureModel = LanguageAspect.STRUCTURE.get(language);

    return ListSequence.fromList(
            SModelOperations.getNodes(
                structureModel, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"))
        .where(
            new IWhereFilter<SNode>() {
              public boolean accept(SNode it) {
                return !(SPropertyOperations.getBoolean(it, "abstract"));
              }
            });
  }