001 package com.google.dart.compiler.backend.js.ast; 002 003 import java.util.Collections; 004 import java.util.Map; 005 006 public class JsDocComment extends JsExpressionImpl { 007 private final Map<String, Object> tags; 008 009 public JsDocComment(Map<String, Object> tags) { 010 this.tags = tags; 011 } 012 013 public Map<String, Object> getTags() { 014 return tags; 015 } 016 017 public JsDocComment(String tagName, JsNameRef tagValue) { 018 tags = Collections.<String, Object>singletonMap(tagName, tagValue); 019 } 020 021 public JsDocComment(String tagName, String tagValue) { 022 tags = Collections.<String, Object>singletonMap(tagName, tagValue); 023 } 024 025 @Override 026 public void accept(JsVisitor v) { 027 v.visitDocComment(this); 028 } 029 }