Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frog: internal error after undiagnosed syntax error 2 #1011

Closed
DartBot opened this issue Jan 1, 2012 · 4 comments
Closed

Frog: internal error after undiagnosed syntax error 2 #1011

DartBot opened this issue Jan 1, 2012 · 4 comments

Comments

@DartBot
Copy link

DartBot commented Jan 1, 2012

This issue was originally filed by [email protected]


A different way to get the same symptom as Issue #566.

nev@bananian:~/Work/tooling2/tests/scripts$ cat Test.dart
main() {
  bool a = true;
  bool b = true;
  if (a b)
  {
  }
}

nev@bananian:~/Work/tooling2/tests/scripts$ frogsh --compile-only --enable_type_checks --out=Test.js Test.dart

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
NoSuchMethodException - receiver: '' function name: 'visitDeclaredIdentifier' arguments: []]
    (TypeError: Object #<MethodGenerator> has no method 'visitDeclaredIdentifier')
    at DeclaredIdentifier.visit (/home/nev/Work/dart/dart/frog/frogsh:12114:18)
    at MethodGenerator.visitValue (/home/nev/Work/dart/dart/frog/frogsh:4139:20)
    at MethodGenerator.visitBool (/home/nev/Work/dart/dart/frog/frogsh:4135:15)
    at MethodGenerator.visitIfStatement (/home/nev/Work/dart/dart/frog/frogsh:4280:19)
    at IfStatement.visit (/home/nev/Work/dart/dart/frog/frogsh:11390:18)
    at IfStatement.visit$1 (/home/nev/Work/dart/dart/frog/frogsh:11393:15)
    at MethodGenerator.visitStatementsInBlock (/home/nev/Work/dart/dart/frog/frogsh:4113:12)
    at MethodGenerator.writeBody (/home/nev/Work/dart/dart/frog/frogsh:4038:8)
    at MethodGenerator.run (/home/nev/Work/dart/dart/frog/frogsh:3778:8)
    at WorldGenerator.genMethod (/home/nev/Work/dart/dart/frog/frogsh:3322:48)
nev@bananian:~/Work/tooling2/tests/scripts$

@DartBot
Copy link
Author

DartBot commented Jan 1, 2012

This comment was originally written by [email protected]


It's revision 2886.

@dgrove
Copy link
Contributor

dgrove commented Jan 2, 2012

Added Area-Frog, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jan 4, 2012

This comment was originally written by [email protected]


Set owner to [email protected].
Added Started label.

@DartBot
Copy link
Author

DartBot commented Jan 4, 2012

This comment was originally written by [email protected]


Hopefully, this fix will better handle this class of errors so it won't keep popping up. Thanks for the bug!

http://codereview.chromium.org/9085016


Added Fixed label.

dart-bot pushed a commit that referenced this issue Mar 17, 2021
2021-03-17 [email protected] Fixes #1017. Use => for setter returning value tests
2021-03-16 [email protected] Issue #996: more tests for Generic functions as type arguments and bounds added.
2021-03-16 [email protected] Fixes #1005. Description updated for method_definition tests
2021-03-16 [email protected] Fixes #1011. Expect an error if non-function type is called as a function
2021-03-16 [email protected] Issue #996: tests for Generic functions as type arguments and bounds re-factored, more tests added.
2021-03-15 [email protected] Issue #996: tests for Generic functions as type arguments and bounds added.
2021-03-15 [email protected] Issue #996: tests for Generic functions as type arguments and bounds added.
2021-03-15 [email protected] Missed experiment flag added
2021-03-12 [email protected] Issue #996: tests for Generic functions as type arguments and bounds added.
2021-03-12 [email protected] #993. Added tests checking that Struct fields cannot have initializers
2021-03-12 [email protected] #993. Tests for not external members of Struct subtype added
2021-03-11 [email protected] #993. Use package ffi in co19 ffi tests
2021-03-09 [email protected] Fixes #995. Annotations with type arguments tests added
2021-03-09 [email protected] Issue #997: existing triple-shift tests corrected.
2021-03-09 [email protected] More fixes for #535: split constant evaluation tests because static behavior of the strong and weak mode is different.
2021-03-04 [email protected] #993. Array tests added
2021-03-04 [email protected] #993. Pointer equality tests added
2021-03-03 [email protected] #993. Pointer.elementAt() tests added
2021-03-02 [email protected] #993. Pointer.cast() tests added
2021-03-01 [email protected] #993. Pointer tests added
2021-03-01 [email protected] Fixes #936. Change expected result according to the new left top rule
2021-02-26 [email protected] Fixed #998: tests checks output streams correctly now.
2021-02-26 [email protected] #993. IntPtr tests added
2021-02-26 [email protected] #993. More Struct tests added
2021-02-25 [email protected] Tests updated, missing issue tags added.
2021-02-25 [email protected] #1003. Isolate test fixed to not to be a racy
2021-02-25 [email protected] Issue numbers added
2021-02-24 [email protected] Issue number added
2021-02-24 [email protected] #988. Typo in error message fixed
2021-02-24 [email protected] #988. Fix test expectations

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-debug-x64-try,vm-kernel-nnbd-linux-release-simarm64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-mac-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-debug-x64-try,vm-kernel-precomp-nnbd-linux-release-simarm64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I718644028b1d2a9fbba0c7efdf2923bb67184fde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/191409
Reviewed-by: William Hesse <[email protected]>
copybara-service bot pushed a commit that referenced this issue Sep 14, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ecosystem (https://github.com/dart-lang/ecosystem/compare/e96fbdb..babf5d1):
  babf5d1  2023-09-13  Devon Carew  add additional lints to dart_flutter_team_lints (#167)
  7740bef  2023-09-13  Moritz  Write comments on forks for `firehose` (#165)

http (https://github.com/dart-lang/http/compare/de19214..e19094a):
  e19094a  2023-09-14  Brian Quinlan  Use efficient operations when copying bytes between Dart and Java (#1019)
  d7e4375  2023-09-13  Parker Lougheed  Cleanup `package:http` utils (#1011)
  eafbbb0  2023-09-12  Brian Quinlan  Separate the cronet callbacks from the `send` method (#1017)
  2cbb703  2023-09-12  Brian Quinlan  Switch `cronet_http` to use jnigen (#1016)

native (https://github.com/dart-lang/native/compare/bbcbc1f..7faf62c):
  7faf62c  2023-09-14  Gabriel Terwesten  Add `includes`, `flags`, `std`, `language`, `cppLinkStdLib` options (#125)

shelf (https://github.com/dart-lang/shelf/compare/2926f76..e2a02b7):
  e2a02b7  2023-09-13  Kevin Moore  Move to latest pkg:dart_flutter_team_lints, bump min sdk to Dart 3 (#378)

tools (https://github.com/dart-lang/tools/compare/fa01f9b..1512f3d):
  1512f3d  2023-09-13  Elias Yishak  Add Fake Analytics instance that uses list to save events sent (#149)

webdev (https://github.com/dart-lang/webdev/compare/6b21ecf..501ccc2):
  501ccc28  2023-09-12  Elliott Brooks  Update DCM triggers to match Dart DevTools (#2230)

Change-Id: Ic3dc1924da48454a28e4c0d8705244ac1565e74a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325967
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Devon Carew <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants