Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

reflactor(parser): rename DynamicParser into Parser #1251

Closed

Conversation

vsavkin
Copy link
Contributor

@vsavkin vsavkin commented Jul 21, 2014

Since there is only one implementation of the Parser interface, which is used for both dynamic and static deployments, calling it DynamicParser is misleading.

  • Remove the Parser interface
  • Rename DynamicParser into Parser
  • Rename DynamicParserBackend into RuntimeParserBackend

@vsavkin vsavkin added cla: yes and removed cla: no labels Jul 21, 2014
@@ -6,13 +6,17 @@ import 'package:angular/core/parser/syntax.dart';
import 'package:angular/core/parser/characters.dart';
import 'package:angular/utils.dart' show isReservedWord;

class DynamicParserImpl {
Expression parseExpression(Lexer lexer, ParserBackend backend, String input) {
return new _ParseExpression(lexer, backend, input).parseChain();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: use =>

@chirayuk
Copy link
Contributor

@vsavkin: I've merged your other PR, PR #1257, as commit ccccd84.  This PR doesn't apply on top of that.  It seems that these are incompatible.  Is this still a valid PR?

@vsavkin
Copy link
Contributor Author

vsavkin commented Aug 21, 2014

@chirayuk I think the only thing that has to change is:

import 'package:angular/core/parser/parser_dynamic.dart';

to:

import 'package:angular/core/parser/dynamic_closure_map.dart';

I can rebase this PR.

@vsavkin vsavkin force-pushed the merge_dynamic_parser_into_parser branch from 2711232 to 76d5aba Compare September 3, 2014 14:14
Since there is only one implementation of the Parser interface, which is used for both dynamic and static deployments, calling it DynamicParser is misleading.

- Remove the Parser interface
- Rename rename DynamicParser into Parser
- Rename DynamicParserBackend into RuntimeParserBackend
@vsavkin vsavkin force-pushed the merge_dynamic_parser_into_parser branch from 76d5aba to 76eef19 Compare September 3, 2014 16:42
@vsavkin vsavkin closed this in 771f863 Sep 4, 2014
vsavkin added a commit to vsavkin/angular.dart that referenced this pull request Sep 10, 2014
Since there is only one implementation of the Parser interface, which is used for both dynamic and static deployments, calling it DynamicParser is misleading.

- Remove the Parser interface
- Rename rename DynamicParser into Parser
- Rename DynamicParserBackend into RuntimeParserBackend

Closes dart-archive#1251
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

4 participants