示例#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");
  }
示例#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"));
              }
            });
  }
 public static boolean static_canBeARoot(SModel model, final IOperationContext operationContext) {
   return LanguageAspect.STRUCTURE.is(model) || SModelStereotype.isGeneratorModel(model);
 }
 public static boolean static_canBeARoot(SModel model, final IOperationContext operationContext) {
   return LanguageAspect.STRUCTURE.is(model);
 }