@@ -1794,6 +1794,116 @@ class VerifyingVisitor extends RecursiveResultVisitor<void> {
17941794 }
17951795 super .visitSwitchStatement (node);
17961796 }
1797+
1798+ @override
1799+ void visitListConcatenation (ListConcatenation node) {
1800+ if (stage >= VerificationStage .afterConstantEvaluation) {
1801+ if (! inUnevaluatedConstant) {
1802+ problem (node, "Unexpected internal node $node ." );
1803+ }
1804+ }
1805+ }
1806+
1807+ @override
1808+ void visitSetConcatenation (SetConcatenation node) {
1809+ if (stage >= VerificationStage .afterConstantEvaluation) {
1810+ if (! inUnevaluatedConstant) {
1811+ problem (node, "Unexpected internal node $node ." );
1812+ }
1813+ }
1814+ }
1815+
1816+ @override
1817+ void visitMapConcatenation (MapConcatenation node) {
1818+ if (stage >= VerificationStage .afterConstantEvaluation) {
1819+ if (! inUnevaluatedConstant) {
1820+ problem (node, "Unexpected internal node $node ." );
1821+ }
1822+ }
1823+ }
1824+
1825+ @override
1826+ void visitInstanceCreation (InstanceCreation node) {
1827+ if (stage >= VerificationStage .afterConstantEvaluation) {
1828+ if (! inUnevaluatedConstant) {
1829+ problem (node, "Unexpected internal node $node ." );
1830+ }
1831+ }
1832+ }
1833+
1834+ @override
1835+ void visitFileUriExpression (FileUriExpression node) {
1836+ if (! target.supportsFileUriExpression) {
1837+ if (stage >= VerificationStage .afterConstantEvaluation) {
1838+ if (! inUnevaluatedConstant) {
1839+ problem (node, "Unexpected internal node $node ." );
1840+ }
1841+ }
1842+ }
1843+ }
1844+
1845+ @override
1846+ void visitPatternAssignment (PatternAssignment node) {
1847+ if (stage >= VerificationStage .afterConstantEvaluation) {
1848+ problem (node, "Unexpected internal node $node ." );
1849+ }
1850+ }
1851+
1852+ @override
1853+ void visitPatternVariableDeclaration (PatternVariableDeclaration node) {
1854+ if (stage >= VerificationStage .afterConstantEvaluation) {
1855+ problem (node, "Unexpected internal node $node ." );
1856+ }
1857+ }
1858+
1859+ @override
1860+ void visitIfCaseStatement (IfCaseStatement node) {
1861+ if (stage >= VerificationStage .afterConstantEvaluation) {
1862+ problem (node, "Unexpected internal node $node ." );
1863+ }
1864+ }
1865+
1866+ @override
1867+ void visitPatternSwitchStatement (PatternSwitchStatement node) {
1868+ if (stage >= VerificationStage .afterConstantEvaluation) {
1869+ problem (node, "Unexpected internal node $node ." );
1870+ }
1871+ }
1872+
1873+ @override
1874+ void defaultPattern (Pattern node) {
1875+ if (stage >= VerificationStage .afterConstantEvaluation) {
1876+ problem (node, "Unexpected internal node $node ." );
1877+ }
1878+ }
1879+
1880+ @override
1881+ void visitSwitchExpression (SwitchExpression node) {
1882+ if (stage >= VerificationStage .afterConstantEvaluation) {
1883+ problem (node, "Unexpected internal node $node ." );
1884+ }
1885+ }
1886+
1887+ @override
1888+ void visitSwitchExpressionCase (SwitchExpressionCase node) {
1889+ if (stage >= VerificationStage .afterConstantEvaluation) {
1890+ problem (node, "Unexpected internal node $node ." );
1891+ }
1892+ }
1893+
1894+ @override
1895+ void visitPatternGuard (PatternGuard node) {
1896+ if (stage >= VerificationStage .afterConstantEvaluation) {
1897+ problem (node, "Unexpected internal node $node ." );
1898+ }
1899+ }
1900+
1901+ @override
1902+ void visitPatternSwitchCase (PatternSwitchCase node) {
1903+ if (stage >= VerificationStage .afterConstantEvaluation) {
1904+ problem (node, "Unexpected internal node $node ." );
1905+ }
1906+ }
17971907}
17981908
17991909class VerifyGetStaticType extends RecursiveVisitor {
0 commit comments