@Test public void simple() { DmdlSemantics resolved = resolve(); ModelDeclaration simple = resolved.findModelDeclaration("simple"); assertThat(simple, not(nullValue())); PropertyDeclaration property = simple.findPropertyDeclaration("a"); assertThat(property, not(nullValue())); assertThat(property.getType(), is(type(BasicTypeKind.INT))); }
public synchronized DmdlSemantics resolve() throws DmdlSemanticException { checkDiagnostics(); resolveSymbols(); checkDiagnostics(); resolveAttributes(); checkDiagnostics(); verifyAttributes(); checkDiagnostics(); return context.getWorld(); }
DmdlAnalyzer { public synchronized DmdlSemantics resolve() throws DmdlSemanticException { checkDiagnostics(); resolveSymbols(); checkDiagnostics(); resolveAttributes(); checkDiagnostics(); verifyAttributes(); checkDiagnostics(); return context.getWorld(); } }
DmdlAnalyzer { public synchronized DmdlSemantics resolve() throws DmdlSemanticException { checkDiagnostics(); resolveSymbols(); checkDiagnostics(); resolveAttributes(); checkDiagnostics(); verifyAttributes(); checkDiagnostics(); return context.getWorld(); } DmdlAnalyzer(
            Iterable<? extends TypeDriver> typeDrivers,
            Iterable<? extends AttributeDriver> attributeDrivers);  DmdlAnalyzer(
            DmdlAnalyzerEnhancer enhancer,
            Iterable<? extends TypeDriver> typeDrivers,
            Iterable<? extends AttributeDriver> attributeDrivers); }
DmdlAnalyzer { public synchronized DmdlSemantics resolve() throws DmdlSemanticException { checkDiagnostics(); resolveSymbols(); checkDiagnostics(); resolveAttributes(); checkDiagnostics(); verifyAttributes(); checkDiagnostics(); return context.getWorld(); } DmdlAnalyzer(
            Iterable<? extends TypeDriver> typeDrivers,
            Iterable<? extends AttributeDriver> attributeDrivers);  DmdlAnalyzer(
            DmdlAnalyzerEnhancer enhancer,
            Iterable<? extends TypeDriver> typeDrivers,
            Iterable<? extends AttributeDriver> attributeDrivers); void addModel(AstModelDefinition<?> definition); synchronized DmdlSemantics resolve(); }
DmdlAnalyzer { public synchronized DmdlSemantics resolve() throws DmdlSemanticException { checkDiagnostics(); resolveSymbols(); checkDiagnostics(); resolveAttributes(); checkDiagnostics(); verifyAttributes(); checkDiagnostics(); return context.getWorld(); } DmdlAnalyzer(
            Iterable<? extends TypeDriver> typeDrivers,
            Iterable<? extends AttributeDriver> attributeDrivers);  DmdlAnalyzer(
            DmdlAnalyzerEnhancer enhancer,
            Iterable<? extends TypeDriver> typeDrivers,
            Iterable<? extends AttributeDriver> attributeDrivers); void addModel(AstModelDefinition<?> definition); synchronized DmdlSemantics resolve();  }