Renamed MismatchedComponentTypeAnalysis.kt.
This commit is contained in:
		
							parent
							
								
									0f14cec9c5
								
							
						
					
					
						commit
						45781209c0
					
				@ -7,7 +7,7 @@ import groowt.view.component.compiler.CachingComponentTemplateCompiler;
 | 
				
			|||||||
import groowt.view.component.compiler.ComponentTemplateCompileException;
 | 
					import groowt.view.component.compiler.ComponentTemplateCompileException;
 | 
				
			||||||
import groowt.view.component.factory.ComponentTemplateSource;
 | 
					import groowt.view.component.factory.ComponentTemplateSource;
 | 
				
			||||||
import groowt.view.web.analysis.MismatchedComponentTypeError;
 | 
					import groowt.view.web.analysis.MismatchedComponentTypeError;
 | 
				
			||||||
import groowt.view.web.analysis.MismatchedComponentTypeErrorAnalysis;
 | 
					import groowt.view.web.analysis.MismatchedComponentTypeAnalysis;
 | 
				
			||||||
import groowt.view.web.antlr.CompilationUnitParseResult;
 | 
					import groowt.view.web.antlr.CompilationUnitParseResult;
 | 
				
			||||||
import groowt.view.web.antlr.ParserUtil;
 | 
					import groowt.view.web.antlr.ParserUtil;
 | 
				
			||||||
import groowt.view.web.antlr.TokenList;
 | 
					import groowt.view.web.antlr.TokenList;
 | 
				
			||||||
@ -97,7 +97,7 @@ public class DefaultWebViewComponentTemplateCompiler extends CachingComponentTem
 | 
				
			|||||||
        final CompilationUnitParseResult parseResult = ParserUtil.parseCompilationUnit(reader);
 | 
					        final CompilationUnitParseResult parseResult = ParserUtil.parseCompilationUnit(reader);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        final List<MismatchedComponentTypeError> mismatchedComponentTypeErrors =
 | 
					        final List<MismatchedComponentTypeError> mismatchedComponentTypeErrors =
 | 
				
			||||||
                MismatchedComponentTypeErrorAnalysis.check(parseResult.getCompilationUnitContext());
 | 
					                MismatchedComponentTypeAnalysis.check(parseResult.getCompilationUnitContext());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        final var tokenList = new TokenList(parseResult.getTokenStream());
 | 
					        final var tokenList = new TokenList(parseResult.getTokenStream());
 | 
				
			||||||
        final var astBuilder = new DefaultAstBuilder(new DefaultNodeFactory(tokenList));
 | 
					        final var astBuilder = new DefaultAstBuilder(new DefaultNodeFactory(tokenList));
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
@file:JvmName("MismatchedComponentTypeErrorAnalysis")
 | 
					@file:JvmName("MismatchedComponentTypeAnalysis")
 | 
				
			||||||
package groowt.view.web.analysis
 | 
					package groowt.view.web.analysis
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import groowt.view.web.antlr.WebViewComponentsParser.ComponentTypeContext
 | 
					import groowt.view.web.antlr.WebViewComponentsParser.ComponentTypeContext
 | 
				
			||||||
@ -2,7 +2,7 @@ package groowt.view.web.tools
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import groovy.transform.InheritConstructors
 | 
					import groovy.transform.InheritConstructors
 | 
				
			||||||
import groovy.transform.MapConstructor
 | 
					import groovy.transform.MapConstructor
 | 
				
			||||||
import groowt.view.web.analysis.MismatchedComponentTypeErrorAnalysis
 | 
					import groowt.view.web.analysis.MismatchedComponentTypeAnalysis
 | 
				
			||||||
import groowt.view.web.antlr.AntlrUtil
 | 
					import groowt.view.web.antlr.AntlrUtil
 | 
				
			||||||
import groowt.view.web.antlr.ParserUtil
 | 
					import groowt.view.web.antlr.ParserUtil
 | 
				
			||||||
import groowt.view.web.antlr.TokenList
 | 
					import groowt.view.web.antlr.TokenList
 | 
				
			||||||
@ -96,7 +96,7 @@ final class AstFileMaker extends AbstractTreeFileMaker {
 | 
				
			|||||||
                )
 | 
					                )
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            def mismatchedTypeErrors = MismatchedComponentTypeErrorAnalysis.check(cuContext)
 | 
					            def mismatchedTypeErrors = MismatchedComponentTypeAnalysis.check(cuContext)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (!mismatchedTypeErrors.isEmpty()) {
 | 
					            if (!mismatchedTypeErrors.isEmpty()) {
 | 
				
			||||||
                def message = 'There were mismatched type errors: \n' + mismatchedTypeErrors.collect {
 | 
					                def message = 'There were mismatched type errors: \n' + mismatchedTypeErrors.collect {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user